Harden PRD live-site smoke

This commit is contained in:
2026-05-08 20:37:42 -04:00
parent 8e450496e0
commit 3df998876b
6 changed files with 67 additions and 11 deletions
@@ -143,6 +143,7 @@ fn render_profile_row(
.child(render_profile_default_action(
index,
default_profile_id,
profile.kind() == &ProfileKind::Standard,
default_for_active_space,
cx,
))
@@ -172,6 +173,7 @@ fn profile_color_swatch(color_hex: u32) -> AnyElement {
fn render_profile_default_action(
index: usize,
profile_id: ProfileId,
allows_default: bool,
default_for_active_space: bool,
cx: &mut Context<ElyShell>,
) -> AnyElement {
@@ -184,6 +186,16 @@ fn render_profile_default_action(
.into_any_element();
}
if !allows_default {
return Button::new(("default-profile", index))
.ghost()
.xsmall()
.disabled(true)
.label("Private")
.tooltip("Private Profiles stay opt-in")
.into_any_element();
}
Button::new(("default-profile", index))
.ghost()
.xsmall()