Minimal Viable Product + Refactor to pinia store + Fix PDF export
This commit is contained in:
14
resources/js/stores/ui.ts
Normal file
14
resources/js/stores/ui.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
const useShowComponentSelectionStore = defineStore('showComponentSelection', {
|
||||
state: () => ({
|
||||
showComponentSelection: false as boolean,
|
||||
}),
|
||||
actions: {
|
||||
setShowComponentSelection(show: boolean) {
|
||||
this.showComponentSelection = show;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export { useShowComponentSelectionStore };
|
||||
Reference in New Issue
Block a user