parent
b7edc89a87
commit
6ee06bf2a0
1 changed files with 19 additions and 11 deletions
|
@ -332,17 +332,25 @@ impl ZedAiOnboarding {
|
||||||
.mb_2(),
|
.mb_2(),
|
||||||
)
|
)
|
||||||
.child(plan_definitions.pro_plan(false))
|
.child(plan_definitions.pro_plan(false))
|
||||||
.child(
|
.when_some(
|
||||||
Button::new("pro", "Continue with Zed Pro")
|
self.dismiss_onboarding.as_ref(),
|
||||||
.full_width()
|
|this, dismiss_callback| {
|
||||||
.style(ButtonStyle::Outlined)
|
let callback = dismiss_callback.clone();
|
||||||
.on_click({
|
this.child(
|
||||||
let callback = self.continue_with_zed_ai.clone();
|
h_flex().absolute().top_0().right_0().child(
|
||||||
move |_, window, cx| {
|
IconButton::new("dismiss_onboarding", IconName::Close)
|
||||||
telemetry::event!("Banner Dismissed", source = "AI Onboarding");
|
.icon_size(IconSize::Small)
|
||||||
callback(window, cx)
|
.tooltip(Tooltip::text("Dismiss"))
|
||||||
}
|
.on_click(move |_, window, cx| {
|
||||||
}),
|
telemetry::event!(
|
||||||
|
"Banner Dismissed",
|
||||||
|
source = "AI Onboarding",
|
||||||
|
);
|
||||||
|
callback(window, cx)
|
||||||
|
}),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
},
|
||||||
)
|
)
|
||||||
.into_any_element()
|
.into_any_element()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue