From 3e414564e544dbef358849ad6d0ec3af18dddece Mon Sep 17 00:00:00 2001 From: jamesread Date: Tue, 26 May 2026 00:28:52 +0100 Subject: [PATCH] fix: Dont rely on icon DOM text for ExecutionView --- frontend/resources/vue/ActionButton.vue | 9 +++++++++ frontend/resources/vue/views/ExecutionView.vue | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/resources/vue/ActionButton.vue b/frontend/resources/vue/ActionButton.vue index 6223469..f2d2f6a 100644 --- a/frontend/resources/vue/ActionButton.vue +++ b/frontend/resources/vue/ActionButton.vue @@ -79,6 +79,7 @@ const showNavigateOnStartIcons = computed(() => { }) const actionGlyph = computed(() => props.actionData?.icon ?? '') +const glyph = ref('') // Combined classes including custom cssClass const combinedClasses = computed(() => { @@ -112,6 +113,7 @@ function constructFromJson(json) { isDisabled.value = !json.canExec displayTitle.value = title.value + glyph.value = json.icon ?? '' // Initialize rate limit from action data (parse datetime string) if (json.datetimeRateLimitExpires) { const date = new Date(json.datetimeRateLimitExpires.replace(' ', 'T')) @@ -313,10 +315,17 @@ watch( () => props.actionData, (newData) => { updateFromJson(newData) + if (newData?.icon !== undefined) { + glyph.value = newData.icon ?? '' + } }, { deep: true } ) +defineExpose({ + glyph +}) +