From 8d889762872501eebd5edb5d7cacddfd4cd55ad4 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 28 Feb 2020 04:09:40 +0100 Subject: viewer: more minor architectural improvement --- viewer/src/views/GalleryDirectory.vue | 2 +- viewer/src/views/GallerySearch.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'viewer/src/views') diff --git a/viewer/src/views/GalleryDirectory.vue b/viewer/src/views/GalleryDirectory.vue index 6e68578..30f651c 100644 --- a/viewer/src/views/GalleryDirectory.vue +++ b/viewer/src/views/GalleryDirectory.vue @@ -30,7 +30,7 @@ export default class GalleryDirectory extends Vue { @Prop({ required: true }) readonly directory!: Gallery.Directory; mounted() { - this.$uiStore.fullscreen = false; + this.$uiStore.toggleFullscreen(false); } orderedItems() { diff --git a/viewer/src/views/GallerySearch.vue b/viewer/src/views/GallerySearch.vue index d638df2..e3369b3 100644 --- a/viewer/src/views/GallerySearch.vue +++ b/viewer/src/views/GallerySearch.vue @@ -33,12 +33,12 @@ export default class GalleryPicture extends Vue { otherCount: Number = 0; mounted() { - this.$uiStore.fullscreen = false; - this.$uiStore.searchMode = true; + this.$uiStore.toggleFullscreen(false); + this.$uiStore.toggleSearchMode(true); } destroyed() { - this.$uiStore.searchMode = false; + this.$uiStore.toggleSearchMode(false); } items() { -- cgit v1.2.3