Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Allow opening channel notes from the channel list

Max Brunsfeld1ec81e02da8b
diff --git a/crates/collab_ui2/src/collab_panel.rs b/crates/collab_ui2/src/collab_panel.rs
index 272f02bb491..bfef193cf73 100644
--- a/crates/collab_ui2/src/collab_panel.rs
+++ b/crates/collab_ui2/src/collab_panel.rs
@@ -2619,6 +2619,9 @@ impl CollabPanel {
} else {
Color::Muted
})
+ .on_click(cx.listener(move |this, _, cx| {
+ this.open_channel_notes(channel_id, cx)
+ }))
.tooltip(|cx| {
Tooltip::text("Open channel notes", cx)
}),