Skip to content
Snippets Groups Projects
Commit e6afd460 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

fix scope bug

parent 18acc155
No related branches found
No related tags found
No related merge requests found
......@@ -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")
}
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment