diff --git a/frontend/src/lib/components/LabelsInput.svelte b/frontend/src/lib/components/LabelsInput.svelte index cd85b9fd76..313c491349 100644 --- a/frontend/src/lib/components/LabelsInput.svelte +++ b/frontend/src/lib/components/LabelsInput.svelte @@ -17,6 +17,7 @@ * button needs it: without it that text is invisible to the editor's dirty state, * so it is silently dropped on close and cannot even enable Save on its own. */ onPendingChange?: (pending: string) => void + disabled?: boolean } let { @@ -24,7 +25,8 @@ onchange, class: clazz = '', workspace, - onPendingChange + onPendingChange, + disabled = false }: Props = $props() let adding = $state(false) @@ -140,12 +142,14 @@ {#each labels ?? [] as label (label)} {label} - + {#if !disabled} + + {/if} {/each} - {#if adding} + {#if adding && !disabled}
{/if}
- {:else} + {:else if !disabled}