Rename zed.dev/settings
to zed.dev/account
(#15636)
This PR renames the links to the `zed.dev/settings` page to the `zed.dev/account`. Some of these spots will likely link out to a marketing page later. Release Notes: - N/A
This commit is contained in:
parent
7652045903
commit
4bfb8fda8d
3 changed files with 5 additions and 5 deletions
|
@ -153,7 +153,7 @@ async fn create_billing_subscription(
|
||||||
quantity: Some(1),
|
quantity: Some(1),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}]);
|
}]);
|
||||||
let success_url = format!("{}/settings", app.config.zed_dot_dev_url());
|
let success_url = format!("{}/account", app.config.zed_dot_dev_url());
|
||||||
params.success_url = Some(&success_url);
|
params.success_url = Some(&success_url);
|
||||||
|
|
||||||
CheckoutSession::create(&stripe_client, params).await?
|
CheckoutSession::create(&stripe_client, params).await?
|
||||||
|
@ -261,7 +261,7 @@ async fn manage_billing_subscription(
|
||||||
after_completion: Some(CreateBillingPortalSessionFlowDataAfterCompletion {
|
after_completion: Some(CreateBillingPortalSessionFlowDataAfterCompletion {
|
||||||
type_: stripe::CreateBillingPortalSessionFlowDataAfterCompletionType::Redirect,
|
type_: stripe::CreateBillingPortalSessionFlowDataAfterCompletionType::Redirect,
|
||||||
redirect: Some(CreateBillingPortalSessionFlowDataAfterCompletionRedirect {
|
redirect: Some(CreateBillingPortalSessionFlowDataAfterCompletionRedirect {
|
||||||
return_url: format!("{}/settings", app.config.zed_dot_dev_url()),
|
return_url: format!("{}/account", app.config.zed_dot_dev_url()),
|
||||||
}),
|
}),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
|
@ -278,7 +278,7 @@ async fn manage_billing_subscription(
|
||||||
|
|
||||||
let mut params = CreateBillingPortalSession::new(customer_id);
|
let mut params = CreateBillingPortalSession::new(customer_id);
|
||||||
params.flow_data = Some(flow);
|
params.flow_data = Some(flow);
|
||||||
let return_url = format!("{}/settings", app.config.zed_dot_dev_url());
|
let return_url = format!("{}/account", app.config.zed_dot_dev_url());
|
||||||
params.return_url = Some(&return_url);
|
params.return_url = Some(&return_url);
|
||||||
|
|
||||||
let session = BillingPortalSession::create(&stripe_client, params).await?;
|
let session = BillingPortalSession::create(&stripe_client, params).await?;
|
||||||
|
|
|
@ -402,7 +402,7 @@ impl ConfigurationView {
|
||||||
impl Render for ConfigurationView {
|
impl Render for ConfigurationView {
|
||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||||
const ZED_AI_URL: &str = "https://zed.dev/ai";
|
const ZED_AI_URL: &str = "https://zed.dev/ai";
|
||||||
const ACCOUNT_SETTINGS_URL: &str = "https://zed.dev/settings";
|
const ACCOUNT_SETTINGS_URL: &str = "https://zed.dev/account";
|
||||||
|
|
||||||
let is_connected = self.state.read(cx).is_connected();
|
let is_connected = self.state.read(cx).is_connected();
|
||||||
let plan = self.state.read(cx).user_store.read(cx).current_plan();
|
let plan = self.state.read(cx).user_store.read(cx).current_plan();
|
||||||
|
|
|
@ -425,7 +425,7 @@ pub fn initialize_workspace(app_state: Arc<AppState>, cx: &mut AppContext) {
|
||||||
.register_action(
|
.register_action(
|
||||||
|_: &mut Workspace, _: &OpenAccountSettings, cx: &mut ViewContext<Workspace>| {
|
|_: &mut Workspace, _: &OpenAccountSettings, cx: &mut ViewContext<Workspace>| {
|
||||||
let server_url = &client::ClientSettings::get_global(cx).server_url;
|
let server_url = &client::ClientSettings::get_global(cx).server_url;
|
||||||
cx.open_url(&format!("{server_url}/settings"));
|
cx.open_url(&format!("{server_url}/account"));
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.register_action(
|
.register_action(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue