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,
isRepositoryLevel: Boolean,
open: true,
isLoadingItems: false,
isLoadingItems: true,
},
data() {
return {

View File

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

View File

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

View File

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

View File

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