agent: Clarify upgrade path when starting trial (#33706)
Release Notes: - N/A
This commit is contained in:
parent
3151b5efc1
commit
0629804390
1 changed files with 11 additions and 4 deletions
|
@ -1106,7 +1106,14 @@ impl RenderOnce for ZedAIConfiguration {
|
||||||
.on_click(|_, _, cx| cx.open_url(ZED_PRICING_URL)),
|
.on_click(|_, _, cx| cx.open_url(ZED_PRICING_URL)),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
Button::new("upgrade", "Upgrade")
|
Button::new(
|
||||||
|
"upgrade",
|
||||||
|
if self.plan.is_none() && self.eligible_for_trial {
|
||||||
|
"Start Trial"
|
||||||
|
} else {
|
||||||
|
"Upgrade"
|
||||||
|
},
|
||||||
|
)
|
||||||
.style(ButtonStyle::Subtle)
|
.style(ButtonStyle::Subtle)
|
||||||
.color(Color::Accent)
|
.color(Color::Accent)
|
||||||
.on_click(|_, _, cx| cx.open_url(&zed_urls::account_url(cx))),
|
.on_click(|_, _, cx| cx.open_url(&zed_urls::account_url(cx))),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue