WIP account mgmt data-table prototype and modal prototype.
This commit is contained in:
15
src/stores/modal.js
Normal file
15
src/stores/modal.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
export const useModalStore = defineStore('modalStore', {
|
||||
state: () => ({
|
||||
isModalOpen: false,
|
||||
}),
|
||||
actions: {
|
||||
openModal() {
|
||||
this.isModalOpen = true;
|
||||
},
|
||||
closeModal() {
|
||||
this.isModalOpen = false;
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user