diff --git a/src/stores/mixin.ts b/src/stores/mixin.ts index 7e380a117..3ac73c26c 100644 --- a/src/stores/mixin.ts +++ b/src/stores/mixin.ts @@ -452,36 +452,6 @@ export const useCounterMixin = defineStore("mixin", () => { .onDismiss(() => {}); } - function modalWarning(q: any, title: string, message: string, ok?: Function) { - // q.dialog({ - // title: `${title}`, - // message: `${message}`, - // ok: { - // push: true, - // color: "primary", - // }, - // focus: "none", - // persistent: true, - // html: true, - // }) - // .onOk(() => { - // if (ok != undefined) ok(); - // }) - // .onCancel(() => {}) - // .onDismiss(() => {}); - - q.dialog({ - component: CustomComponent, - componentProps: { - title: title, - message: message, - icon: "warning", - color: "warning", - onlycancel: true, - }, - }); - } - function modalConfirm( q: any, title: string, @@ -512,6 +482,36 @@ export const useCounterMixin = defineStore("mixin", () => { .onDismiss(() => {}); } + function modalWarning(q: any, title: string, message: string, ok?: Function) { + // q.dialog({ + // title: `${title}`, + // message: `${message}`, + // ok: { + // push: true, + // color: "primary", + // }, + // focus: "none", + // persistent: true, + // html: true, + // }) + // .onOk(() => { + // if (ok != undefined) ok(); + // }) + // .onCancel(() => {}) + // .onDismiss(() => {}); + + q.dialog({ + component: CustomComponent, + componentProps: { + title: title, + message: message, + icon: "warning", + color: "warning", + onlycancel: true, + }, + }); + } + function modalError(q: any, title: string, message: string, ok?: Function) { // q.dialog({ // title: `${title}`,