From 962e789e1d2378d4ddd5d777366b08d2122f5f21 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 22 Apr 2023 23:13:26 -0500 Subject: [PATCH] Added way to customize board action confirmation label --- src/features/boards/BoardNode.vue | 15 ++++++++++++--- src/features/boards/BoardNodeAction.vue | 1 - src/features/boards/board.ts | 6 ++++++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/features/boards/BoardNode.vue b/src/features/boards/BoardNode.vue index df5c135..e29b4eb 100644 --- a/src/features/boards/BoardNode.vue +++ b/src/features/boards/BoardNode.vue @@ -117,7 +117,7 @@ Tap again to confirm{{ confirmationLabel.text }} @@ -216,6 +217,14 @@ const label = computed( getNodeProperty(unref(props.selectedAction)!.tooltip, unref(props.node)) : null) ?? getNodeProperty(props.nodeType.value.label, unref(props.node)) ); +const confirmationLabel = computed(() => + getNodeProperty( + unref(props.selectedAction)?.confirmationLabel ?? { + text: "Tap again to confirm" + }, + unref(props.node) + ) +); const size = computed(() => getNodeProperty(props.nodeType.value.size, unref(props.node))); const progress = computed( () => getNodeProperty(props.nodeType.value.progress, unref(props.node)) ?? 0 diff --git a/src/features/boards/BoardNodeAction.vue b/src/features/boards/BoardNodeAction.vue index 95adeee..c65727a 100644 --- a/src/features/boards/BoardNodeAction.vue +++ b/src/features/boards/BoardNodeAction.vue @@ -1,7 +1,6 @@