fix(ui): label the no-run picker option as the current definition

This commit is contained in:
sam committed 2026-10-18 23:45:26 +11:00
1 parent b7f22948e5
commit 4d76b6e380
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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(" · "),
+1 -1
View File
@@ -66,7 +66,7 @@ export function useWorkflowRuns(workflow: Ref<string>) {
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;