fix(ui): label the no-run picker option as the current definition
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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(" · "),
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user