Remove debugging

This commit is contained in:
Conrad Irwin 2023-11-28 15:33:44 -07:00
parent 450f2bf6b6
commit b13638fa76

View file

@ -3044,7 +3044,7 @@ impl CollabPanel {
}) })
.unwrap_or(false); .unwrap_or(false);
let has_messages_notification = channel.unseen_message_id.is_some() || true; let has_messages_notification = channel.unseen_message_id.is_some();
let has_notes_notification = channel.unseen_note_version.is_some(); let has_notes_notification = channel.unseen_note_version.is_some();
const FACEPILE_LIMIT: usize = 3; const FACEPILE_LIMIT: usize = 3;
@ -3092,11 +3092,10 @@ impl CollabPanel {
.child( .child(
div() div()
.id("channel_chat") .id("channel_chat")
.bg(gpui::blue())
.when(!has_messages_notification, |el| el.invisible()) .when(!has_messages_notification, |el| el.invisible())
.group_hover("", |style| style.visible()) .group_hover("", |style| style.visible())
.child( .child(
IconButton::new("test_chat", Icon::MessageBubbles) IconButton::new("channel_chat", Icon::MessageBubbles)
.color(if has_messages_notification { .color(if has_messages_notification {
Color::Default Color::Default
} else { } else {
@ -3111,20 +3110,16 @@ impl CollabPanel {
.when(!has_notes_notification, |el| el.invisible()) .when(!has_notes_notification, |el| el.invisible())
.group_hover("", |style| style.visible()) .group_hover("", |style| style.visible())
.child( .child(
div().child("Notes").id("test_notes").tooltip(|cx| { IconButton::new("channel_notes", Icon::File)
Tooltip::text("Open channel notes", cx) .color(if has_notes_notification {
}), Color::Default
), // .child( } else {
// IconButton::new("channel_notes", Icon::File) Color::Muted
// .color(if has_notes_notification { })
// Color::Default .tooltip(|cx| {
// } else { Tooltip::text("Open channel notes", cx)
// Color::Muted }),
// }) ),
// .tooltip(|cx| {
// Tooltip::text("Open channel notes", cx)
// }),
// ),
), ),
), ),
) )