Browse Source

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
web-serve-fix
Matthew Raymer 3 weeks ago
parent
commit
26e69d50df
  1. 12
      src/components/ChoiceButtonDialog.vue

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

Loading…
Cancel
Save