From 4d76b6e380686aeded9881325864a2e378718aac Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 18 Oct 2026 23:38:22 +1100 Subject: [PATCH] fix(ui): label the no-run picker option as the current definition --- ui/src/workflows/WorkflowEditor.vue | 2 +- ui/src/workflows/workflow-runs.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/workflows/WorkflowEditor.vue b/ui/src/workflows/WorkflowEditor.vue index 5092622c1..23df03df5 100644 --- a/ui/src/workflows/WorkflowEditor.vue +++ b/ui/src/workflows/WorkflowEditor.vue @@ -315,7 +315,7 @@ const workflowSummary = computed(() => [WORKS_ON[String(workflowField(yaml.value, "repository") ?? "")] ?? REQUIRED, workflowField(yaml.value, "profile")].filter(Boolean).join(" · "), ); const runOptions = computed(() => [ - { value: "", label: "Definition only" }, + { value: "", label: "Current definition" }, ...runs.value.map((run) => ({ value: String(run.id), label: [`${run.source === "test" ? "Test" : "Run"} #${run.id}`, run.title, run.status, runRevision(run) ? `v${runRevision(run)!.version}` : ""].filter(Boolean).join(" · "), diff --git a/ui/src/workflows/workflow-runs.ts b/ui/src/workflows/workflow-runs.ts index 14e97e21a..82a7440ce 100644 --- a/ui/src/workflows/workflow-runs.ts +++ b/ui/src/workflows/workflow-runs.ts @@ -66,7 +66,7 @@ export function useWorkflowRuns(workflow: Ref) { attempt.value = latest?.attempt ?? 0; } - // "Definition only" is a choice too, and a refresh must not undo it. + // "Current definition" is a choice too, and a refresh must not undo it. function pick(id: string): void { picked = true; watched.value = id;