diff options
author | Zero~Informatique | 2020-01-31 06:46:31 +0100 |
---|---|---|
committer | Zero~Informatique | 2020-01-31 06:46:31 +0100 |
commit | 252dd6fc6f53ecd8b28e05a0514429472d53d08e (patch) | |
tree | cecc440dd97372dc657d5048b6175b426ae7cd7d /viewer/src/store | |
parent | a6465c393be055680b3a7168cc8875936fdc8632 (diff) | |
download | ldgallery-252dd6fc6f53ecd8b28e05a0514429472d53d08e.tar.gz |
viewer: finalized the command buttons. added the 'up to parent' command
Diffstat (limited to 'viewer/src/store')
-rw-r--r-- | viewer/src/store/uiStore.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/viewer/src/store/uiStore.ts b/viewer/src/store/uiStore.ts index 6bcc538..f7484de 100644 --- a/viewer/src/store/uiStore.ts +++ b/viewer/src/store/uiStore.ts | |||
@@ -27,6 +27,7 @@ const VuexModule = createModule({ | |||
27 | export default class UIStore extends VuexModule { | 27 | export default class UIStore extends VuexModule { |
28 | 28 | ||
29 | fullscreen: boolean = false; | 29 | fullscreen: boolean = false; |
30 | fullWidth: boolean = true; | ||
30 | mode: "navigation" | "search" = "navigation"; | 31 | mode: "navigation" | "search" = "navigation"; |
31 | currentTags: Tag.Search[] = []; | 32 | currentTags: Tag.Search[] = []; |
32 | 33 | ||
@@ -46,6 +47,10 @@ export default class UIStore extends VuexModule { | |||
46 | this.fullscreen = !this.fullscreen; | 47 | this.fullscreen = !this.fullscreen; |
47 | } | 48 | } |
48 | 49 | ||
50 | @mutation toggleFullWidth() { | ||
51 | this.fullWidth = !this.fullWidth; | ||
52 | } | ||
53 | |||
49 | @mutation setModeNavigation() { | 54 | @mutation setModeNavigation() { |
50 | this.mode = "navigation"; | 55 | this.mode = "navigation"; |
51 | } | 56 | } |