aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/store/uiStore.ts
diff options
context:
space:
mode:
authorZero~Informatique2020-02-28 04:09:40 +0100
committerZero~Informatique2020-02-28 04:09:40 +0100
commit8d889762872501eebd5edb5d7cacddfd4cd55ad4 (patch)
tree984ceda461f5dc5294653f8edac3ef125b516159 /viewer/src/store/uiStore.ts
parentafa8a533ebb6943405cc5933167634c144e7f8c7 (diff)
downloadldgallery-8d889762872501eebd5edb5d7cacddfd4cd55ad4.tar.gz
viewer: more minor architectural improvement
Diffstat (limited to 'viewer/src/store/uiStore.ts')
-rw-r--r--viewer/src/store/uiStore.ts14
1 files changed, 9 insertions, 5 deletions
diff --git a/viewer/src/store/uiStore.ts b/viewer/src/store/uiStore.ts
index 1e63b3e..21f9ce9 100644
--- a/viewer/src/store/uiStore.ts
+++ b/viewer/src/store/uiStore.ts
@@ -21,7 +21,7 @@ import { createModule, mutation, action } from "vuex-class-component";
21 21
22const VuexModule = createModule({ 22const VuexModule = createModule({
23 namespaced: "uiStore", 23 namespaced: "uiStore",
24 strict: false 24 strict: true
25}) 25})
26 26
27export default class UIStore extends VuexModule { 27export default class UIStore extends VuexModule {
@@ -32,11 +32,15 @@ export default class UIStore extends VuexModule {
32 32
33 // --- 33 // ---
34 34
35 @mutation toggleFullscreen() { 35 @mutation toggleFullscreen(value?: boolean) {
36 this.fullscreen = !this.fullscreen; 36 this.fullscreen = value ?? !this.fullscreen;
37 } 37 }
38 38
39 @mutation toggleFullWidth() { 39 @mutation toggleFullWidth(value?: boolean) {
40 this.fullWidth = !this.fullWidth; 40 this.fullWidth = value ?? !this.fullWidth;
41 }
42
43 @mutation toggleSearchMode(value?: boolean) {
44 this.searchMode = value ?? !this.searchMode;
41 } 45 }
42} 46}