aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/store/uiStore.ts
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/store/uiStore.ts')
-rw-r--r--viewer/src/store/uiStore.ts22
1 files changed, 2 insertions, 20 deletions
diff --git a/viewer/src/store/uiStore.ts b/viewer/src/store/uiStore.ts
index f7484de..5b6e1ca 100644
--- a/viewer/src/store/uiStore.ts
+++ b/viewer/src/store/uiStore.ts
@@ -28,18 +28,8 @@ export default class UIStore extends VuexModule {
28 28
29 fullscreen: boolean = false; 29 fullscreen: boolean = false;
30 fullWidth: boolean = true; 30 fullWidth: boolean = true;
31 mode: "navigation" | "search" = "navigation"; 31 searchMode: boolean = false;
32 currentTags: Tag.Search[] = []; 32 searchFilters: Tag.Search[] = [];
33
34 // ---
35
36 get isModeSearch() {
37 return this.mode === "search";
38 }
39
40 get isModeNavigation() {
41 return this.mode === "navigation";
42 }
43 33
44 // --- 34 // ---
45 35
@@ -50,12 +40,4 @@ export default class UIStore extends VuexModule {
50 @mutation toggleFullWidth() { 40 @mutation toggleFullWidth() {
51 this.fullWidth = !this.fullWidth; 41 this.fullWidth = !this.fullWidth;
52 } 42 }
53
54 @mutation setModeNavigation() {
55 this.mode = "navigation";
56 }
57
58 @mutation setModeSearch() {
59 this.mode = "search";
60 }
61} 43}