Fixes theme side repository level items list. Adds collection filter to term items list.

This commit is contained in:
Mateus Machado Luna 2020-02-18 09:59:02 -03:00
parent f4516e9ea3
commit a97f62bd82
4 changed files with 10 additions and 7 deletions

View File

@ -65,10 +65,10 @@
},
created(){
this.fetchCollections({
page: 1,
collectionsPerPage: -1,
status: null,
contextEdit: false
page: 1,
collectionsPerPage: -1,
status: null,
contextEdit: false
});
},
mounted(){
@ -100,7 +100,7 @@
compare: 'IN',
collection_id: this.collectionsIdsToFilter,
});
},
}
}
}
</script>

View File

@ -36,6 +36,9 @@
<!-- TERM ITEMS PAGE FILTERS -->
<template v-if="taxonomy && taxonomyFilters">
<collections-filter
:open="!collapseAll"
:query="getQuery"/>
<div
v-if="key == 'repository-filters'"
:key="index"

View File

@ -55,7 +55,7 @@ export const fetchItems = ({ rootGetters, dispatch, commit }, { collectionId, is
// Differentiates between repository level and collection level queries
let endpoint = '/collection/'+ collectionId +'/items?';
if (collectionId == undefined){
if (collectionId == undefined || collectionId == '' || collectionId == null){
endpoint = '/items?';
}

View File

@ -649,7 +649,7 @@
},
created() {
this.isRepositoryLevel = (this.collectionId === undefined);
this.isRepositoryLevel = (this.collectionId == undefined || this.collectionId == '' || this.collectionId == null);
if (this.collectionId != undefined)
this.$eventBusSearch.setCollectionId(this.collectionId);