From b22880e5cbb789135d1fb1188086dceb9d6f8bb7 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Mon, 10 Jul 2023 10:26:45 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A3=E0=B8=A7=E0=B8=A1=E0=B9=84=E0=B8=9F?= =?UTF-8?q?=E0=B8=A5=E0=B9=8Cmixin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/mixin.ts | 60 ++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 30 deletions(-) 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}`,