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:
Matthew Raymer
2025-07-09 08:26:34 +00:00
parent a43d5f9616
commit 26e69d50df

View File

@@ -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,
);
}