fix(ui): move workflow enable toggle into the editor toolbar, tie it to the published version
This commit is contained in:
1 parent
c761ad6775
commit
03d21b80da
2 files changed
+4
-1
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user