From 86d4066084d99380e8d2152faed46b25626e7d35 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 18 Oct 2026 23:38:44 +1100 Subject: [PATCH] fix(ui): render watched-run actions secondary so Publish stays the toolbar primary --- ui/src/tasks/TaskRowActions.vue | 4 +++- ui/src/workflows/WorkflowEditor.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/tasks/TaskRowActions.vue b/ui/src/tasks/TaskRowActions.vue index c2d3ef7eb..a0846e57c 100644 --- a/ui/src/tasks/TaskRowActions.vue +++ b/ui/src/tasks/TaskRowActions.vue @@ -67,6 +67,8 @@ const props = defineProps<{ /** Render only these action ids, still only if the server offered them. */ only?: string[]; findings?: string[]; + /** The host toolbar owns the primary action; render ours secondary. */ + secondary?: boolean; }>(); const emit = defineEmits<{ done: [taskId: Task["id"]] }>(); @@ -176,7 +178,7 @@ function forgeLink(id: string): string { function variantFor(kind: string): ControlVariant { if (kind === "quiet") return "ghost"; if (kind === "danger") return "destructive"; - return "default"; + return props.secondary ? "ghost" : "default"; } // A control that names a consequence is confirmed first; the two that only open diff --git a/ui/src/workflows/WorkflowEditor.vue b/ui/src/workflows/WorkflowEditor.vue index cad2e2f38..62fe09107 100644 --- a/ui/src/workflows/WorkflowEditor.vue +++ b/ui/src/workflows/WorkflowEditor.vue @@ -401,7 +401,7 @@ function syncScroll(event: Event): void {