From 52a99c3047e1add477e36919b15a745f7d2604a0 Mon Sep 17 00:00:00 2001 From: AlexRV12 <71396855+AlexRV12@users.noreply.github.com> Date: Wed, 7 Oct 2026 12:24:00 +0200 Subject: [PATCH] fix: make every trigger and schedule editor control respect read-only mode (#11569) * fix: make every trigger and schedule editor control respect read-only mode Co-Authored-By: Claude Opus 5.5 * fix: grey out read-only option buttons in gcp, mqtt and sqs editors Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- .../src/lib/components/LabelsInput.svelte | 16 ++++++---- .../lib/components/select/MultiSelect.svelte | 4 +-- .../components/triggers/CaptureSection.svelte | 12 ++++++-- .../triggers/PermissionedAsLine.svelte | 24 +++++++++++---- .../amqp/AmqpEditorConfigSection.svelte | 3 +- .../amqp/AmqpTriggerEditorInner.svelte | 1 + .../azure/AzureTriggerEditorInner.svelte | 1 + .../email/EmailTriggerEditorInner.svelte | 1 + .../gcp/GcpTriggerEditorConfigSection.svelte | 23 +++++++++++---- .../triggers/gcp/GcpTriggerEditorInner.svelte | 3 +- .../triggers/http/RouteEditorInner.svelte | 2 ++ .../kafka/KafkaTriggerEditorInner.svelte | 1 + .../mqtt/MqttEditorConfigSection.svelte | 29 +++++++++++++++---- .../mqtt/MqttTriggerEditorInner.svelte | 13 ++++++--- .../nats/NatsTriggerEditorInner.svelte | 1 + .../PostgresTriggerEditorInner.svelte | 1 + .../schedules/ScheduleEditorInner.svelte | 10 ++++--- .../sqs/SqsTriggerEditorConfigSection.svelte | 24 ++++++++++----- .../triggers/sqs/SqsTriggerEditorInner.svelte | 1 + .../WebsocketTriggerEditorInner.svelte | 1 + 20 files changed, 125 insertions(+), 46 deletions(-) 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}