PluginProbe
The Innovative Form Builder – IvyForms / 0.2.1
The Innovative Form Builder – IvyForms v0.2.1
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / frontend / src / stores / useGlobalState.ts

useGlobalState.ts in The Innovative Form Builder – IvyForms 0.2.1, at frontend/src/stores/useGlobalState.ts

17 lines 360 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { defineStore } from 'pinia'
2
3 export const useGlobalState = defineStore('globalState', {
4 state: () => ({
5 currentPage: '',
6 isFullScreenMode: false,
7 }),
8 actions: {
9 setCurrentPage(page: string) {
10 this.currentPage = page
11 },
12 setFullScreenMode(isFullScreen: boolean) {
13 this.isFullScreenMode = isFullScreen
14 },
15 },
16 })
17