Immediate update to isLoadingItems watchers.

This commit is contained in:
mateuswetah 2020-06-15 16:22:19 -03:00
parent 0b5684ea0c
commit 0dd185a835
5 changed files with 17 additions and 8 deletions

View File

@ -55,7 +55,7 @@
query: Object, query: Object,
isRepositoryLevel: Boolean, isRepositoryLevel: Boolean,
open: true, open: true,
isLoadingItems: false, isLoadingItems: true,
}, },
data() { data() {
return { return {

View File

@ -86,8 +86,11 @@
if (this.isUsingElasticSearch) if (this.isUsingElasticSearch)
this.loadOptions(); this.loadOptions();
}, },
isLoadingItems() { isLoadingItems: {
this.isLoadingOptions = this.isLoadingItems; handler() {
this.isLoadingOptions = this.isLoadingItems;
},
immediate: true
}, },
'query'() { 'query'() {
this.loadOptions(); this.loadOptions();

View File

@ -59,8 +59,11 @@
} }
}, },
watch: { watch: {
isLoadingItems() { isLoadingItems: {
this.isLoadingOptions = this.isLoadingItems; handler() {
this.isLoadingOptions = this.isLoadingItems;
},
immediate: true
}, },
'query'() { 'query'() {
this.updateSelectedValues(); this.updateSelectedValues();

View File

@ -291,7 +291,7 @@
}, },
data() { data() {
return { return {
isLoadingItems: false, isLoadingItems: true,
isLoadingFilters: false, isLoadingFilters: false,
collapseAll: false, collapseAll: false,
taxonomyFiltersCollectionNames: {}, taxonomyFiltersCollectionNames: {},

View File

@ -48,8 +48,11 @@ export const dynamicFilterTypeMixin = {
} }
}, },
watch: { watch: {
isLoadingItems() { isLoadingItems: {
this.isLoadingOptions = this.isLoadingItems; handler() {
this.isLoadingOptions = this.isLoadingItems;
},
immediate: true
} }
}, },
methods: { methods: {