Fixes theme side repository level items list. Adds collection filter to term items list.
This commit is contained in:
parent
f4516e9ea3
commit
a97f62bd82
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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?';
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue