fix(ui): render watched-run actions secondary so Publish stays the toolbar primary
This commit is contained in:
1 parent
912f5e99ff
commit
86d4066084
2 files changed
+4
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -401,7 +401,7 @@ function syncScroll(event: Event): void {
|
||||
<template v-if="watchedRun">
|
||||
<!-- One run control keeps the row short; the run's other actions
|
||||
are on the run, behind Open run in this menu. -->
|
||||
<TaskRowActions :task="watchedRun" :only="watchedRun.actions?.slice(0, 1)" class="max-md:hidden" @done="refresh" />
|
||||
<TaskRowActions :task="watchedRun" :only="watchedRun.actions?.slice(0, 1)" secondary class="max-md:hidden" @done="refresh" />
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user