aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/store/uiStore.ts
diff options
context:
space:
mode:
authorOzoneGrif2020-02-24 01:15:14 +0100
committerGitHub2020-02-24 01:15:14 +0100
commit2a458e25c0510798120dddbd85cef5ee440c2a2a (patch)
tree77d6958950e1c6a2ad425da1c095fefce58b05e4 /viewer/src/store/uiStore.ts
parente42f4e864bac21ed3b19d1869df2cdd4f8c3433c (diff)
parenteb00c2a7874608f70ec7768eae8d006a22bc0a54 (diff)
downloadldgallery-2a458e25c0510798120dddbd85cef5ee440c2a2a.tar.gz
Merge pull request #144 from pacien/oz-search-overhaul
viewer: major code and search mode overhaul > Search indicator in the breadcrumbs: should be shown as clickable instead of being .disabled Not agreeing with this one.
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}