| 12345678910111213141516171819202122232425 |
- import {formState} from '~/types/interfaces'
- import {FORM_STATUS} from "~/types/enums";
- import {defineStore} from "pinia";
- export const useFormStore = defineStore('form', {
- state: (): formState => {
- return {
- formStatus: FORM_STATUS.EDIT,
- violations: [],
- readonly: false,
- dirty: false,
- showConfirmToLeave: false,
- goAfterLeave: null
- }
- }
- })
- export const state = () => ({
- formStatus: FORM_STATUS.EDIT,
- violations: [],
- readonly: false,
- dirty: false,
- showConfirmToLeave: false,
- goAfterLeave: null
- })
|