aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/components
diff options
context:
space:
mode:
authorOzoneGrif2020-02-27 23:33:39 +0100
committerGitHub2020-02-27 23:33:39 +0100
commitb202197dcfe930b9f730919a1db217b99f9a9f55 (patch)
tree8a51b6ceb74bd359ac282a7ff3d6a75f0a105de7 /viewer/src/components
parentf09e9d9fa29284bd9ae872efe5ba1d526e349011 (diff)
parentf2ff937fe4a5782741886ef4920fd0e284775463 (diff)
downloadldgallery-b202197dcfe930b9f730919a1db217b99f9a9f55.tar.gz
Merge pull request #167 from pacien/oz-index-bugfix
viewer: tag index bugfix
Diffstat (limited to 'viewer/src/components')
-rw-r--r--viewer/src/components/LdCommand.vue2
-rw-r--r--viewer/src/components/LdTagInput.vue2
2 files changed, 2 insertions, 2 deletions
diff --git a/viewer/src/components/LdCommand.vue b/viewer/src/components/LdCommand.vue
index 398107e..9afd121 100644
--- a/viewer/src/components/LdCommand.vue
+++ b/viewer/src/components/LdCommand.vue
@@ -55,7 +55,7 @@ export default class LdCommand extends Vue {
55 } 55 }
56 56
57 isEntryPoint(): boolean { 57 isEntryPoint(): boolean {
58 return history.state.ldgallery === "ENTRYPOINT"; // Set by MainLayout.vue 58 return history.state?.ldgallery === "ENTRYPOINT"; // Set by MainLayout.vue
59 } 59 }
60 60
61 parent(): RawLocation { 61 parent(): RawLocation {
diff --git a/viewer/src/components/LdTagInput.vue b/viewer/src/components/LdTagInput.vue
index b2a2c58..bdb07bc 100644
--- a/viewer/src/components/LdTagInput.vue
+++ b/viewer/src/components/LdTagInput.vue
@@ -55,7 +55,7 @@ export default class LdTagInput extends Vue {
55 } 55 }
56 56
57 searchTags(filter: string) { 57 searchTags(filter: string) {
58 this.filteredTags = IndexFactory.searchTags(this.tagsIndex, filter) 58 this.filteredTags = IndexFactory.searchTags(this.tagsIndex, filter, false)
59 .filter(newSearch => !this.model.find(currentSearch => currentSearch.tag === newSearch.tag)) 59 .filter(newSearch => !this.model.find(currentSearch => currentSearch.tag === newSearch.tag))
60 .sort((a, b) => b.items.length - a.items.length); 60 .sort((a, b) => b.items.length - a.items.length);
61 } 61 }