fix(ui): give the mobile workflow picker the header row, drop the duplicate Draft badge

This commit is contained in:
sam committed 2026-10-18 23:49:17 +11:00
1 parent 7f5fbe4135
commit d40ba948e9
1 file changed
-3
-3
View File
@@ -127,8 +127,6 @@ async function setEnabled(value: boolean) {
}
}
const stages = computed(() => (data.value.stages ?? []).filter((s) => s.workflow === selected.value));
// A draft the open workflow has not been published from yet.
const drafted = computed(() => store.drafts.some((draft) => draft.id === selected.value));
// The selected workflow's runs come from a workflow-filtered page: the global
// list above holds only the newest tasks of every workflow.
const workflowRuns = ref<RunTask[]>([]);
@@ -218,7 +216,6 @@ const rate = (deliveredRuns = 0, total = 0) => (total ? deliveredRuns / total :
<div class="min-w-0 flex-1 lg:hidden"><WorkflowPicker class="w-full" :value="selected" :workflows="rows" label="Workflow" @pick="selected = $event" /></div>
<h2 class="min-w-0 truncate text-[15px] font-medium max-lg:hidden">{{ selected }}</h2>
<Badge v-if="provenance" variant="outline" class="shrink-0">{{ provenance }}</Badge>
<Badge v-if="drafted" variant="outline" class="shrink-0 lg:hidden">Draft</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" />