diff --git a/packages/web/src/forms/ExtendedCheckBoxField.svelte b/packages/web/src/forms/ExtendedCheckBoxField.svelte index e5c88f1a2..344ccce4d 100644 --- a/packages/web/src/forms/ExtendedCheckBoxField.svelte +++ b/packages/web/src/forms/ExtendedCheckBoxField.svelte @@ -8,6 +8,8 @@ export let label; + export let disabled = false; + $: renderedValue = value ?? inheritedValue; $: isInherited = inheritedValue != null && value == null; @@ -30,11 +32,12 @@
{ + if (disabled) return; onChange(getNextValue()); }} > -
-
+
+
{label}
@@ -51,6 +54,11 @@ user-select: none; } + .label.disabled { + cursor: not-allowed; + color: var(--theme-font-3); + } + .checkbox { width: 14px !important; height: 14px !important; @@ -76,4 +84,9 @@ .isInherited { background: var(--theme-bg-2) !important; } + + .checkbox.disabled { + background: var(--theme-bg-2) !important; + cursor: not-allowed; + }