Merge branch 'develop' of https://github.com/tainacan/tainacan into develop

This commit is contained in:
mateuswetah 2021-07-01 15:32:11 -03:00
commit 13c5ed3ee0
2 changed files with 7 additions and 4 deletions

View File

@ -569,6 +569,8 @@ class REST_Items_Controller extends REST_Controller {
private function get_items_permissions_check_for_taxonomy($taxonomies) {
foreach ($taxonomies as $tax) {
if( !isset($tax['taxonomy']) )
return false;
$taxonomy = \tainacan_taxonomies()->fetch_by_db_identifier( $tax['taxonomy'] );
if( $taxonomy instanceof Entities\Taxonomy ) {

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
}
}
}