mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Remove stray printing in contacts panel
This commit is contained in:
parent
0533a0bd3c
commit
2a2698b8db
@ -361,7 +361,7 @@ impl ContactsPanel {
|
|||||||
cx.dispatch_action(RespondToContactRequest {
|
cx.dispatch_action(RespondToContactRequest {
|
||||||
user_id,
|
user_id,
|
||||||
accept: false,
|
accept: false,
|
||||||
});
|
})
|
||||||
})
|
})
|
||||||
.with_cursor_style(CursorStyle::PointingHand)
|
.with_cursor_style(CursorStyle::PointingHand)
|
||||||
.flex_float()
|
.flex_float()
|
||||||
@ -378,7 +378,7 @@ impl ContactsPanel {
|
|||||||
cx.dispatch_action(RespondToContactRequest {
|
cx.dispatch_action(RespondToContactRequest {
|
||||||
user_id,
|
user_id,
|
||||||
accept: true,
|
accept: true,
|
||||||
});
|
})
|
||||||
})
|
})
|
||||||
.with_cursor_style(CursorStyle::PointingHand)
|
.with_cursor_style(CursorStyle::PointingHand)
|
||||||
.boxed(),
|
.boxed(),
|
||||||
@ -438,9 +438,7 @@ impl ContactsPanel {
|
|||||||
.flex_float()
|
.flex_float()
|
||||||
.boxed()
|
.boxed()
|
||||||
})
|
})
|
||||||
.on_click(move |_, cx| {
|
.on_click(move |_, cx| cx.dispatch_action(RemoveContact(user_id)))
|
||||||
cx.dispatch_action(RemoveContact(user_id));
|
|
||||||
})
|
|
||||||
.with_cursor_style(CursorStyle::PointingHand)
|
.with_cursor_style(CursorStyle::PointingHand)
|
||||||
.flex_float()
|
.flex_float()
|
||||||
.boxed(),
|
.boxed(),
|
||||||
@ -488,9 +486,9 @@ impl ContactsPanel {
|
|||||||
ContactRequestStatus::None | ContactRequestStatus::RequestReceived => {
|
ContactRequestStatus::None | ContactRequestStatus::RequestReceived => {
|
||||||
"+"
|
"+"
|
||||||
}
|
}
|
||||||
ContactRequestStatus::Pending => "…",
|
|
||||||
ContactRequestStatus::RequestSent => "-",
|
ContactRequestStatus::RequestSent => "-",
|
||||||
ContactRequestStatus::RequestAccepted => unreachable!(),
|
ContactRequestStatus::Pending
|
||||||
|
| ContactRequestStatus::RequestAccepted => "…",
|
||||||
};
|
};
|
||||||
|
|
||||||
Label::new(label.to_string(), theme.edit_contact.text.clone())
|
Label::new(label.to_string(), theme.edit_contact.text.clone())
|
||||||
@ -652,10 +650,6 @@ impl ContactsPanel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.list_state.reset(self.entries.len());
|
self.list_state.reset(self.entries.len());
|
||||||
|
|
||||||
log::info!("UPDATE ENTRIES");
|
|
||||||
dbg!(&self.entries);
|
|
||||||
|
|
||||||
cx.notify();
|
cx.notify();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user