Removes unecessary request to repository filters on filters list. Hides loading container on facets block when number of facets is empty.
This commit is contained in:
parent
b9b32b1438
commit
15e143b09a
|
@ -684,12 +684,6 @@ export default {
|
|||
})
|
||||
.catch(() => this.isLoadingFilters = false);
|
||||
|
||||
// On repository level we also fetch collection filters
|
||||
if (this.isRepositoryLevel) {
|
||||
this.fetchRepositoryCollectionFilters()
|
||||
.catch(() => this.isLoadingFilters = false);
|
||||
}
|
||||
|
||||
// Obtains collection name
|
||||
if (!this.isRepositoryLevel) {
|
||||
|
||||
|
|
|
@ -123,8 +123,9 @@
|
|||
</button>
|
||||
<div
|
||||
v-else
|
||||
class="spinner-container">
|
||||
{{ facets.length > 0 ? '' : $root.__('Nothing found.', 'tainacan') }}
|
||||
class="spinner-container"
|
||||
:style="{ display: facets.length > 0 ? 'none' : 'flex'}">
|
||||
{{ $root.__('Nothing found.', 'tainacan') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue