aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/store
diff options
context:
space:
mode:
authorZero~Informatique2019-12-21 02:06:02 +0100
committerZero~Informatique2019-12-21 02:06:02 +0100
commit62005141132da1e9761598fa3e4b35b4dab38a89 (patch)
tree3ff8b9f3acd07801075202f9eb2d2f2dfd328ff5 /viewer/src/store
parentbdce958eddc527912a57afa5b8151e1a90e38355 (diff)
downloadldgallery-62005141132da1e9761598fa3e4b35b4dab38a89.tar.gz
Implemented VueX and a basic UIStore with the fullscreen mutation
Some renaming
Diffstat (limited to 'viewer/src/store')
-rw-r--r--viewer/src/store/uiStore.ts15
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 @@
1import { createModule, mutation, action } from "vuex-class-component";
2
3const VuexModule = createModule({
4 namespaced: "uiStore",
5 strict: true
6})
7
8export default class UIStore extends VuexModule {
9
10 fullscreen: boolean = false;
11
12 @mutation toggleFullscreen() {
13 this.fullscreen = !this.fullscreen;
14 }
15}