From e6afd460d9259c2407ec213d65df0810105401c8 Mon Sep 17 00:00:00 2001 From: Henrik Askjer <henrik.askjer@uib.no> Date: Wed, 12 Jan 2022 15:27:40 +0100 Subject: [PATCH] fix scope bug --- src/components/SearchToolbar.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/SearchToolbar.vue b/src/components/SearchToolbar.vue index ab494e01..7eca746c 100644 --- a/src/components/SearchToolbar.vue +++ b/src/components/SearchToolbar.vue @@ -88,27 +88,27 @@ export default { computed: { inflected_results: { get() { - return this.$parent.scope.includes("b") + return this.$parent.scope.includes("i") }, set() { - if (this.$parent.scope.includes("b")) { - this.$emit('updateScope', this.$parent.scope.replace("b","")) + if (this.$parent.scope.includes("i")) { + this.$emit('updateScope', this.$parent.scope.replace("i","")) } else { - this.$emit('updateScope', this.$parent.scope + "b") + this.$emit('updateScope', this.$parent.scope + "i") } } }, fulltext: { get() { - return this.$parent.scope.includes("x") + return this.$parent.scope.includes("f") }, set() { - if (this.$parent.scope.includes("x")) { - this.$emit('updateScope', this.$parent.scope.replace("x","")) + if (this.$parent.scope.includes("f")) { + this.$emit('updateScope', this.$parent.scope.replace("f","")) } else { - this.$emit('updateScope', this.$parent.scope + "x") + this.$emit('updateScope', this.$parent.scope + "f") } } }, -- GitLab