Finishes merging from endpoint facets branch
This commit is contained in:
parent
ef29a41f77
commit
2938afc6c0
|
@ -449,11 +449,11 @@
|
||||||
collection_id: this.collection_id,
|
collection_id: this.collection_id,
|
||||||
terms: this.selected
|
terms: this.selected
|
||||||
});
|
});
|
||||||
|
|
||||||
for (let selected of this.selected) {
|
for (let selected of this.selected) {
|
||||||
|
|
||||||
for(let i in this.finderColumns){
|
for(let i in this.finderColumns){
|
||||||
let valueIndex = this.finderColumns[i].findIndex(option => option.value == selected);
|
let valueIndex = this.finderColumns[i].findIndex(option => option.value == selected);
|
||||||
|
|
||||||
if (valueIndex >= 0) {
|
if (valueIndex >= 0) {
|
||||||
selectedOptions.push(this.finderColumns[i][valueIndex]);
|
selectedOptions.push(this.finderColumns[i][valueIndex]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,6 @@
|
||||||
this.options.push(item);
|
this.options.push(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ( this.options ){
|
if ( this.options ){
|
||||||
let hasChildren = false;
|
let hasChildren = false;
|
||||||
|
|
||||||
|
@ -183,8 +182,8 @@
|
||||||
onlyLabels.push(res.data[0].label);
|
onlyLabels.push(res.data[0].label);
|
||||||
this.options.push({
|
this.options.push({
|
||||||
isChild: true,
|
isChild: true,
|
||||||
name: res.data[0].label,
|
label: res.data[0].label,
|
||||||
id: res.data[0].value
|
value: res.data[0].value
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
|
|
@ -28,8 +28,7 @@ export default {
|
||||||
});
|
});
|
||||||
|
|
||||||
this.$on('sendValuesToTags', data => {
|
this.$on('sendValuesToTags', data => {
|
||||||
// console.log(data)
|
this.$store.dispatch('search/addFilterTag', data);
|
||||||
this.$store.dispatch('search/addFilterTag', data);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.$root.$on('closeAdvancedSearch', () => {
|
this.$root.$on('closeAdvancedSearch', () => {
|
||||||
|
|
Loading…
Reference in New Issue