build out mock views
This commit is contained in:
parent
6dac3bfb02
commit
403b29a8b8
12 changed files with 1066 additions and 70 deletions
36
frontend/src/stores/modal.js
Normal file
36
frontend/src/stores/modal.js
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
import { defineStore } from "pinia";
|
||||
|
||||
export const useModalsStore = defineStore("modals", {
|
||||
state: () => ({
|
||||
isCreateClientOpen: false,
|
||||
isCreateInvoiceOpen: false,
|
||||
isCreateJobOpen: false,
|
||||
isCreateEstimateOpen: false,
|
||||
}),
|
||||
actions: {
|
||||
openCreateClient() {
|
||||
this.isCreateClientOpen = true;
|
||||
},
|
||||
closeCreateClient() {
|
||||
this.isCreateClientOpen = false;
|
||||
},
|
||||
openCreateInvoice() {
|
||||
this.isCreateInvoiceOpen = true;
|
||||
},
|
||||
closeCreateInvoice() {
|
||||
this.isCreateInvoiceOpen = false;
|
||||
},
|
||||
openCreateJob() {
|
||||
this.isCreateJobOpen = true;
|
||||
},
|
||||
closeCreateJob() {
|
||||
this.isCreateJobOpen = false;
|
||||
},
|
||||
openCreateEstimate() {
|
||||
this.isCreateEstimateOpen = true;
|
||||
},
|
||||
closeCreateEstimate() {
|
||||
this.isCreateEstimateOpen = false;
|
||||
},
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue