From d25b5a87668bba43e81342f7385a1097653c5311 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 10 Jan 2020 22:03:30 +0100 Subject: Code review code improvements --- viewer/src/components/LdTagInput.vue | 2 +- viewer/src/views/Gallery.vue | 12 ++---------- 2 files changed, 3 insertions(+), 11 deletions(-) (limited to 'viewer') 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 { return `${option.display} (${option.items.length})`; } - extractOperation(filter: string) { + extractOperation(filter: string): Operation { const first = filter.slice(0, 1); switch (first) { 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 @@ @@ -30,14 +30,6 @@ export default class Gallery extends Vue { this.$galleryStore.setCurrentPath(this.pathMatch); } - get isDirectory(): boolean { - return this.checkType("directory"); - } - - get isPicture(): boolean { - return this.checkType("picture"); - } - // Results of the search (by tags) get currentSearch(): Gallery.Item[] { const byOperation = this.extractTagsByOperation(this.$uiStore.currentTags); -- cgit v1.2.3