diff options
Diffstat (limited to 'viewer/src')
-rw-r--r-- | viewer/src/components/LdTagInput.vue | 2 | ||||
-rw-r--r-- | viewer/src/views/Gallery.vue | 12 |
2 files changed, 3 insertions, 11 deletions
diff --git a/viewer/src/components/LdTagInput.vue b/viewer/src/components/LdTagInput.vue index daca62d..242ebdb 100644 --- a/viewer/src/components/LdTagInput.vue +++ b/viewer/src/components/LdTagInput.vue | |||
@@ -40,7 +40,7 @@ export default class LdTagInput extends Vue { | |||
40 | return `${option.display} (${option.items.length})`; | 40 | return `${option.display} (${option.items.length})`; |
41 | } | 41 | } |
42 | 42 | ||
43 | extractOperation(filter: string) { | 43 | extractOperation(filter: string): Operation { |
44 | const first = filter.slice(0, 1); | 44 | const first = filter.slice(0, 1); |
45 | switch (first) { | 45 | switch (first) { |
46 | case Operation.ADDITION: | 46 | case Operation.ADDITION: |
diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue index a53df3d..1c98877 100644 --- a/viewer/src/views/Gallery.vue +++ b/viewer/src/views/Gallery.vue | |||
@@ -1,8 +1,8 @@ | |||
1 | <template> | 1 | <template> |
2 | <div> | 2 | <div> |
3 | <gallery-search v-if="$uiStore.isModeSearch" :items="currentSearch" /> | 3 | <gallery-search v-if="$uiStore.isModeSearch" :items="currentSearch" /> |
4 | <gallery-directory v-else-if="isDirectory" :directory="$galleryStore.currentItem" /> | 4 | <gallery-directory v-else-if="checkType('directory')" :directory="$galleryStore.currentItem" /> |
5 | <gallery-picture v-else-if="isPicture" :picture="$galleryStore.currentItem" /> | 5 | <gallery-picture v-else-if="checkType('picture')" :picture="$galleryStore.currentItem" /> |
6 | <div v-else>{{$t("gallery.unknowntype")}}</div> | 6 | <div v-else>{{$t("gallery.unknowntype")}}</div> |
7 | </div> | 7 | </div> |
8 | </template> | 8 | </template> |
@@ -30,14 +30,6 @@ export default class Gallery extends Vue { | |||
30 | this.$galleryStore.setCurrentPath(this.pathMatch); | 30 | this.$galleryStore.setCurrentPath(this.pathMatch); |
31 | } | 31 | } |
32 | 32 | ||
33 | get isDirectory(): boolean { | ||
34 | return this.checkType("directory"); | ||
35 | } | ||
36 | |||
37 | get isPicture(): boolean { | ||
38 | return this.checkType("picture"); | ||
39 | } | ||
40 | |||
41 | // Results of the search (by tags) | 33 | // Results of the search (by tags) |
42 | get currentSearch(): Gallery.Item[] { | 34 | get currentSearch(): Gallery.Item[] { |
43 | const byOperation = this.extractTagsByOperation(this.$uiStore.currentTags); | 35 | const byOperation = this.extractTagsByOperation(this.$uiStore.currentTags); |