From 647c36d3d127b60a2c90faef7d73c554b8c8b2cd Mon Sep 17 00:00:00 2001 From: Stefan Peters Date: Thu, 18 Nov 2021 12:14:58 +0100 Subject: [PATCH] MappingBrowser: Fix issue when showing mappings for concordance --- src/components/MappingBrowser.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/MappingBrowser.vue b/src/components/MappingBrowser.vue index 83f35a5f..469005ef 100644 --- a/src/components/MappingBrowser.vue +++ b/src/components/MappingBrowser.vue @@ -1015,7 +1015,7 @@ export default { // Change tab to mapping search. this.tab = this.tabIndexes.search // Clear all other search parameters. - this.clearSearchFilter() + this.clearSearchFilter({ ignoredLock: true }) // Change concordance. this.searchFilterInput.partOf = concordance.uri // Search. @@ -1036,7 +1036,7 @@ export default { return filter && (this.$jskos.compare(scheme, { uri: filter }) || this.$jskos.notation(scheme).toLowerCase() == filter.toLowerCase()) }) }, - clearSearchFilter() { + clearSearchFilter({ ignoredLock = false } = {}) { this.searchFilterInput = { fromScheme: (this.searchFilterInput && this.searchFilterInput.fromScheme) || "", fromNotation: "", @@ -1047,10 +1047,10 @@ export default { type: null, partOf: null, } - if (!this.lockScheme[true]) { + if (ignoredLock || !this.lockScheme[true]) { this.searchFilterInput.fromScheme = "" } - if (!this.lockScheme[false]) { + if (ignoredLock || !this.lockScheme[false]) { this.searchFilterInput.toScheme = "" } this.searchFilterExtended = false