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 {