fix: set isLoadingItems to false on advanced search

This commit is contained in:
vnmedeiros 2021-07-01 14:16:53 -03:00
parent 079c6b8bee
commit 177cb2e0d0
1 changed files with 5 additions and 4 deletions

View File

@ -384,9 +384,7 @@
this.prepareFilters();
});
if (this.isUsingElasticSearch) {
this.$eventBusSearch.$on('isLoadingItems', isLoadingItems => {
this.isLoadingItems = isLoadingItems;
});
this.$eventBusSearch.$on('isLoadingItems', this.updateIsLoadingItems);
}
},
beforeDestroy() {
@ -405,7 +403,7 @@
this.$eventBusSearch.$off('hasToPrepareMetadataAndFilters');
if (this.isUsingElasticSearch)
this.$eventBusSearch.$off('isLoadingItems');
this.$eventBusSearch.$off('isLoadingItems', this.updateIsLoadingItems);
},
methods: {
@ -482,6 +480,9 @@
this.repositoryFiltersSearchCancel = source;
});
}
},
updateIsLoadingItems(isLoadingItems) {
this.isLoadingItems = isLoadingItems
}
}
}