mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 11:29:25 +00:00
Fix opening channel notes from collab panel context menu (#2998)
Release Notes: - Fixed a bug where the 'Open Notes' action in the collaboration panel context menu didn't work (preview only).
This commit is contained in:
commit
ee16b2051e
1 changed files with 2 additions and 8 deletions
|
@ -87,7 +87,7 @@ struct ManageMembers {
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||||
pub struct OpenChannelNotes {
|
pub struct OpenChannelNotes {
|
||||||
pub channel_id: u64,
|
pub channel_id: ChannelId,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||||
|
@ -95,11 +95,6 @@ pub struct JoinChannelCall {
|
||||||
pub channel_id: u64,
|
pub channel_id: u64,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
|
||||||
struct OpenChannelBuffer {
|
|
||||||
channel_id: ChannelId,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||||
struct StartMoveChannelFor {
|
struct StartMoveChannelFor {
|
||||||
channel_id: ChannelId,
|
channel_id: ChannelId,
|
||||||
|
@ -155,7 +150,6 @@ impl_actions!(
|
||||||
ToggleCollapse,
|
ToggleCollapse,
|
||||||
OpenChannelNotes,
|
OpenChannelNotes,
|
||||||
JoinChannelCall,
|
JoinChannelCall,
|
||||||
OpenChannelBuffer,
|
|
||||||
LinkChannel,
|
LinkChannel,
|
||||||
StartMoveChannelFor,
|
StartMoveChannelFor,
|
||||||
StartLinkChannelFor,
|
StartLinkChannelFor,
|
||||||
|
@ -2318,7 +2312,7 @@ impl CollabPanel {
|
||||||
|
|
||||||
items.push(ContextMenuItem::action(
|
items.push(ContextMenuItem::action(
|
||||||
"Open Notes",
|
"Open Notes",
|
||||||
OpenChannelBuffer {
|
OpenChannelNotes {
|
||||||
channel_id: path.channel_id(),
|
channel_id: path.channel_id(),
|
||||||
},
|
},
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in a new issue