From e5b2d38e10bad29e6c79e55a29fe77fe7fbf5362 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 18 Oct 2026 23:39:48 +1100 Subject: [PATCH] fix(ui): grey out disabled Publish and give the reason on hover --- ui/src/workflows/WorkflowEditor.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/src/workflows/WorkflowEditor.vue b/ui/src/workflows/WorkflowEditor.vue index 4840639f1..8c624c17d 100644 --- a/ui/src/workflows/WorkflowEditor.vue +++ b/ui/src/workflows/WorkflowEditor.vue @@ -297,6 +297,9 @@ const parsed = computed(() => parseWorkflowYaml(yaml.value, vocabulary.value)); const stored = computed(() => collection.value.definitions.find((entry) => entry.id === selected.value)?.yaml); const dirty = computed(() => yaml.value !== (stored.value ?? "")); const changes = computed(() => (dirty.value ? workflowChanges(stored.value ?? "", yaml.value) : [])); +// Disabled buttons swallow hover, so the reason sits on a wrapper's title. +const publishBlocked = computed(() => + archieWorking.value ? "Archie is editing" : !parsed.value.ok ? validationLabel(parsed.value) : !changes.value.length ? "No changes" : undefined); const view = ref("canvas"); // What each step lacks, read the way its editor reads it. const problems = computed(() => @@ -434,8 +437,10 @@ function syncScroll(event: Event): void { Delete workflow - + + +

Loading recent runs…