diff options
Diffstat (limited to 'viewer/src/store')
-rw-r--r-- | viewer/src/store/uiStore.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/viewer/src/store/uiStore.ts b/viewer/src/store/uiStore.ts new file mode 100644 index 0000000..c4143a1 --- /dev/null +++ b/viewer/src/store/uiStore.ts | |||
@@ -0,0 +1,15 @@ | |||
1 | import { createModule, mutation, action } from "vuex-class-component"; | ||
2 | |||
3 | const VuexModule = createModule({ | ||
4 | namespaced: "uiStore", | ||
5 | strict: true | ||
6 | }) | ||
7 | |||
8 | export default class UIStore extends VuexModule { | ||
9 | |||
10 | fullscreen: boolean = false; | ||
11 | |||
12 | @mutation toggleFullscreen() { | ||
13 | this.fullscreen = !this.fullscreen; | ||
14 | } | ||
15 | } | ||