PluginProbe
The Innovative Form Builder – IvyForms / 0.8.2
The Innovative Form Builder – IvyForms v0.8.2
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.8.2, at frontend/src/stores/useGlobalState.ts

23 lines 535 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 isFullScreenModeInitialized: false,
8 pageTitle: '',
9 }),
10 actions: {
11 setCurrentPage(page: string) {
12 this.currentPage = page
13 },
14 setFullScreenMode(isFullScreen: boolean) {
15 this.isFullScreenMode = isFullScreen
16 this.isFullScreenModeInitialized = true
17 },
18 setPageTitle(title: string) {
19 this.pageTitle = title
20 },
21 },
22 })
23