forked from trent_larson/crowd-funder-for-time-pwa
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
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user