From dc251fffc2998f1cf4f8e9631928c4b92ac0d90e Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sun, 22 Dec 2019 07:40:55 +0100 Subject: viewer: Implemented the search by tags. Pushed the special urls to ENV. --- viewer/src/store/uiStore.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'viewer/src/store/uiStore.ts') diff --git a/viewer/src/store/uiStore.ts b/viewer/src/store/uiStore.ts index e04b507..4a6f487 100644 --- a/viewer/src/store/uiStore.ts +++ b/viewer/src/store/uiStore.ts @@ -8,11 +8,30 @@ const VuexModule = createModule({ export default class UIStore extends VuexModule { fullscreen: boolean = false; + mode: "navigation" | "search" = "navigation"; currentTags: Tag.Node[] = []; // --- + get isModeSearch() { + return this.mode === "search"; + } + + get isModeNavigation() { + return this.mode === "navigation"; + } + + // --- + @mutation toggleFullscreen() { this.fullscreen = !this.fullscreen; } + + @mutation setModeNavigation() { + this.mode = "navigation"; + } + + @mutation setModeSearch() { + this.mode = "search"; + } } -- cgit v1.2.3