fix(ui): move workflow enable toggle into the editor toolbar, tie it to the published version

This commit is contained in:
sam committed 2026-10-18 23:49:41 +11:00
1 parent 18bb7b7dcb
commit 227a991388
2 files changed
+4 -1

No files matched your search

+1
View File
@@ -401,6 +401,7 @@ function syncScroll(event: Event): void {
</div>
</div>
<div role="group" aria-label="Edit" class="flex min-w-0 items-center gap-1 border-l pl-2">
<slot name="toolbar" />
<Popover v-if="!parsed.ok">
<PopoverTrigger as-child>
<Button type="button" variant="ghost" size="sm" class="min-w-0 max-w-md text-xs text-danger" role="status" :aria-label="validationLabel(parsed)" :title="validationLabel(parsed)">
+3 -1
View File
@@ -218,10 +218,12 @@ const rate = (deliveredRuns = 0, total = 0) => (total ? deliveredRuns / total :
<Badge v-if="provenance" variant="outline" class="shrink-0">{{ provenance }}</Badge>
<div class="ml-auto flex shrink-0 items-center gap-3">
<ApplyStatusRows kind="workflow-definitions" compact />
<Switch v-if="enabled !== undefined" :model-value="enabled" aria-label="Workflow enabled" @update:model-value="setEnabled" />
</div>
</header>
<WorkflowEditor v-model:selected="selected" :runs-count="workflowRuns.length">
<template v-if="enabled !== undefined" #toolbar>
<Switch :model-value="enabled" :title="enabled ? 'Published version runs on events' : 'Published version ignores events'" aria-label="Published version enabled" @update:model-value="setEnabled" />
</template>
<template #performance>
<Empty v-if="!stages.length">
<EmptyHeader>