WIP: #316 close modal
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import { defineStore } from 'pinia';
|
import { defineStore } from 'pinia';
|
||||||
import { MODAL_ACCT_INFO, } from '@/constants/constants.js';
|
import { MODAL_ACCT_INFO, } from '@/constants/constants.js';
|
||||||
import { delaySecond } from "@/utils/timeUtil.js";
|
|
||||||
|
|
||||||
export const useModalStore = defineStore('modalStore', {
|
export const useModalStore = defineStore('modalStore', {
|
||||||
state: () => ({
|
state: () => ({
|
||||||
@@ -13,7 +12,6 @@ export const useModalStore = defineStore('modalStore', {
|
|||||||
this.whichModal = whichModal;
|
this.whichModal = whichModal;
|
||||||
},
|
},
|
||||||
async closeModal(){
|
async closeModal(){
|
||||||
await delaySecond(2);
|
|
||||||
this.isModalOpen = false;
|
this.isModalOpen = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user