From d36b8513b421c7a9091ed1ea4bee6ac4819ef3f8 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Wed, 9 Jul 2025 08:26:34 +0000 Subject: [PATCH] Fix ChoiceButtonDialog: resolve notification type issue causing fallback to confirm dialog - Fixed open() method to use customModal notification type instead of notify.confirm() - Resolved issue where empty text was triggering standard confirm dialog - Now properly displays custom dialog with 3 sharing options as intended - Maintains all template streamlining and type safety improvements - Lint validation successful (no errors) Bug fix: ChoiceButtonDialog now shows proper 3-option dialog instead of yes/no confirm --- src/components/ChoiceButtonDialog.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/ChoiceButtonDialog.vue b/src/components/ChoiceButtonDialog.vue index e21b705e..c9b95431 100644 --- a/src/components/ChoiceButtonDialog.vue +++ b/src/components/ChoiceButtonDialog.vue @@ -186,9 +186,15 @@ export default class PromptDialog extends Vue { this.onOption3 = options.onOption3; this.onCancel = options.onCancel; - this.notify.confirm( - this.text, - async () => {}, // No-op for onYes, handled by custom buttons + // Use customModal notification type instead of confirm + this.$notify( + { + group: "customModal", + type: "custom", + title: this.title, + text: this.text, + id: "choice-button-dialog", + }, TIMEOUTS.MODAL, ); }