Taxonomy filters watch metaquery and non-taxonomy filters watch taxquery for proper facets update.

This commit is contained in:
Mateus Machado Luna 2019-12-10 13:48:41 -03:00
parent 94ee5df74b
commit 2cc87e1683
11 changed files with 35 additions and 0 deletions

View File

@ -56,6 +56,9 @@
'query.metaquery'() {
this.updateSelectedValues();
},
'query.taxquery'() {
this.updateSelectedValues();
}
},
mounted() {
this.updateSelectedValues();

View File

@ -64,6 +64,10 @@
if (!this.isUsingElasticSearch)
this.loadOptions();
},
'query.taxquery'() {
if (!this.isUsingElasticSearch)
this.loadOptions();
},
facetsFromItemSearch() {
if (this.isUsingElasticSearch)
this.loadOptions();

View File

@ -74,6 +74,9 @@
},
'query.metaquery'() {
this.updateSelectedValues();
},
'query.taxquery'() {
this.updateSelectedValues();
}
},
mounted() {

View File

@ -133,6 +133,9 @@
watch: {
'query.metaquery'() {
this.updateSelectedValues();
},
'query.taxquery'() {
this.updateSelectedValues();
}
},
computed: {

View File

@ -34,6 +34,9 @@
watch: {
'query.metaquery'() {
this.updateSelectedValues();
},
'query.taxquery'() {
this.updateSelectedValues();
}
},
methods: {

View File

@ -35,6 +35,9 @@
watch: {
'query.metaquery'() {
this.updateSelectedValues();
},
'query.taxquery'() {
this.updateSelectedValues();
}
},
methods: {

View File

@ -104,6 +104,9 @@
watch: {
'query.metaquery'() {
this.updateSelectedValues();
},
'query.taxquery'() {
this.updateSelectedValues();
}
},
methods: {

View File

@ -41,6 +41,10 @@
if (!this.isUsingElasticSearch)
this.loadOptions();
},
'query.taxquery'() {
if (!this.isUsingElasticSearch)
this.loadOptions();
},
facetsFromItemSearch() {
if (this.isUsingElasticSearch)
this.loadOptions();

View File

@ -61,6 +61,9 @@
watch: {
'query.metaquery'() {
this.updateSelectedValues();
},
'query.taxquery'() {
this.updateSelectedValues();
}
},
created() {

View File

@ -76,6 +76,9 @@
if (this.isUsingElasticSearch)
this.loadOptions();
},
'query.metaquery'() {
this.loadOptions();
},
'query.taxquery'() {
this.loadOptions();
}

View File

@ -56,6 +56,9 @@
watch: {
'query.taxquery'() {
this.updateSelectedValues();
},
'query.metaquery'() {
this.loadOptions();
}
},
mounted() {