aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/store/uiStore.ts
diff options
context:
space:
mode:
authorZero~Informatique2020-04-28 03:47:39 +0200
committerZero~Informatique2020-04-28 03:47:50 +0200
commitccecfd9421f4550a71134cd46e1388e486f8c564 (patch)
tree9711ed24320150d24d85a124de3fd6177052eeb0 /viewer/src/store/uiStore.ts
parent113bff3c4dcc1976f24df16d4224e1871e665ae0 (diff)
downloadldgallery-ccecfd9421f4550a71134cd46e1388e486f8c564.tar.gz
viewer: global formatting unification
Diffstat (limited to 'viewer/src/store/uiStore.ts')
-rw-r--r--viewer/src/store/uiStore.ts30
1 files changed, 15 insertions, 15 deletions
diff --git a/viewer/src/store/uiStore.ts b/viewer/src/store/uiStore.ts
index 2bd315c..892d35e 100644
--- a/viewer/src/store/uiStore.ts
+++ b/viewer/src/store/uiStore.ts
@@ -20,27 +20,27 @@
20import { createModule, mutation, action } from "vuex-class-component"; 20import { createModule, mutation, action } from "vuex-class-component";
21 21
22const VuexModule = createModule({ 22const VuexModule = createModule({
23 namespaced: "uiStore", 23 namespaced: "uiStore",
24 strict: true 24 strict: true
25}) 25})
26 26
27export default class UIStore extends VuexModule { 27export default class UIStore extends VuexModule {
28 28
29 fullscreen: boolean = false; 29 fullscreen: boolean = false;
30 fullWidth: boolean = window.innerWidth < Number(process.env.VUE_APP_FULLWIDTH_LIMIT); 30 fullWidth: boolean = window.innerWidth < Number(process.env.VUE_APP_FULLWIDTH_LIMIT);
31 searchMode: boolean = false; 31 searchMode: boolean = false;
32 32
33 // --- 33 // ---
34 34
35 @mutation toggleFullscreen(value?: boolean) { 35 @mutation toggleFullscreen(value?: boolean) {
36 this.fullscreen = value ?? !this.fullscreen; 36 this.fullscreen = value ?? !this.fullscreen;
37 } 37 }
38 38
39 @mutation toggleFullWidth(value?: boolean) { 39 @mutation toggleFullWidth(value?: boolean) {
40 this.fullWidth = value ?? !this.fullWidth; 40 this.fullWidth = value ?? !this.fullWidth;
41 } 41 }
42 42
43 @mutation toggleSearchMode(value?: boolean) { 43 @mutation toggleSearchMode(value?: boolean) {
44 this.searchMode = value ?? !this.searchMode; 44 this.searchMode = value ?? !this.searchMode;
45 } 45 }
46} 46}