Start on collab panel empty state
This commit is contained in:
parent
488073deba
commit
196df1c378
1 changed files with 27 additions and 14 deletions
|
@ -2027,8 +2027,21 @@ impl CollabPanel {
|
|||
}
|
||||
|
||||
fn render_signed_out(&mut self, cx: &mut ViewContext<Self>) -> Div {
|
||||
v_stack().border_1().border_color(gpui::red()).child(
|
||||
Button::new("sign_in", "Sign in to collaborate").on_click(cx.listener(
|
||||
v_stack()
|
||||
.justify_center()
|
||||
.items_center()
|
||||
.child(v_stack().gap_1().p_4()
|
||||
.child(
|
||||
Label::new("Work with your team with realtive collaborative editing, voice, shared notes and more.")
|
||||
)
|
||||
.child(
|
||||
Label::new("Sign in to enable collaboration.")
|
||||
)
|
||||
.child(
|
||||
Button::new("sign_in", "Sign in")
|
||||
.style(ButtonStyle::Filled)
|
||||
.full_width()
|
||||
.on_click(cx.listener(
|
||||
|this, _, cx| {
|
||||
let client = this.client.clone();
|
||||
cx.spawn(|_, mut cx| async move {
|
||||
|
@ -2040,7 +2053,7 @@ impl CollabPanel {
|
|||
.detach()
|
||||
},
|
||||
)),
|
||||
)
|
||||
))
|
||||
}
|
||||
|
||||
fn render_list_entry(&mut self, ix: usize, cx: &mut ViewContext<Self>) -> AnyElement {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue