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'() { 'query.metaquery'() {
this.updateSelectedValues(); this.updateSelectedValues();
}, },
'query.taxquery'() {
this.updateSelectedValues();
}
}, },
mounted() { mounted() {
this.updateSelectedValues(); this.updateSelectedValues();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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