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,8 +86,11 @@
if (this.isUsingElasticSearch)
this.loadOptions();
},
isLoadingItems() {
this.isLoadingOptions = this.isLoadingItems;
isLoadingItems: {
handler() {
this.isLoadingOptions = this.isLoadingItems;
},
immediate: true
},
'query'() {
this.loadOptions();

View File

@ -59,8 +59,11 @@
}
},
watch: {
isLoadingItems() {
this.isLoadingOptions = this.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() {
this.isLoadingOptions = this.isLoadingItems;
isLoadingItems: {
handler() {
this.isLoadingOptions = this.isLoadingItems;
},
immediate: true
}
},
methods: {