Start work on following in zed2

Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2023-12-04 17:51:53 -08:00
parent 71a1125e88
commit eff3a72fb5
4 changed files with 245 additions and 167 deletions

View file

@ -1165,12 +1165,11 @@ impl CollabPanel {
div().into_any_element()
}),
)
.when(!is_current_user, |this| {
.when_some(peer_id, |this, peer_id| {
this.tooltip(move |cx| Tooltip::text(tooltip.clone(), cx))
.on_click(cx.listener(move |this, _, cx| {
this.workspace.update(cx, |workspace, cx| {
// workspace.follow(peer_id, cx)
});
this.workspace
.update(cx, |workspace, cx| workspace.follow(peer_id, cx));
}))
})
}