diff options
Diffstat (limited to 'viewer/src/store')
-rw-r--r-- | viewer/src/store/galleryStore.ts | 2 | ||||
-rw-r--r-- | viewer/src/store/uiStore.ts | 14 |
2 files changed, 10 insertions, 6 deletions
diff --git a/viewer/src/store/galleryStore.ts b/viewer/src/store/galleryStore.ts index 9950f5b..bc43ed2 100644 --- a/viewer/src/store/galleryStore.ts +++ b/viewer/src/store/galleryStore.ts | |||
@@ -36,7 +36,7 @@ export default class GalleryStore extends VuexModule { | |||
36 | 36 | ||
37 | // --- | 37 | // --- |
38 | 38 | ||
39 | @mutation setConfig(config: Gallery.Config) { | 39 | @mutation private setConfig(config: Gallery.Config) { |
40 | this.config = config; | 40 | this.config = config; |
41 | } | 41 | } |
42 | 42 | ||
diff --git a/viewer/src/store/uiStore.ts b/viewer/src/store/uiStore.ts index 1d0d62f..2bd315c 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 | ||
22 | const VuexModule = createModule({ | 22 | const VuexModule = createModule({ |
23 | namespaced: "uiStore", | 23 | namespaced: "uiStore", |
24 | strict: false | 24 | strict: true |
25 | }) | 25 | }) |
26 | 26 | ||
27 | export default class UIStore extends VuexModule { | 27 | export 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 | } |