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);
|
.catch(() => this.isLoadingFilters = false);
|
||||||
|
|
||||||
// On repository level we also fetch collection filters
|
|
||||||
if (this.isRepositoryLevel) {
|
|
||||||
this.fetchRepositoryCollectionFilters()
|
|
||||||
.catch(() => this.isLoadingFilters = false);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Obtains collection name
|
// Obtains collection name
|
||||||
if (!this.isRepositoryLevel) {
|
if (!this.isRepositoryLevel) {
|
||||||
|
|
||||||
|
|
|
@ -123,8 +123,9 @@
|
||||||
</button>
|
</button>
|
||||||
<div
|
<div
|
||||||
v-else
|
v-else
|
||||||
class="spinner-container">
|
class="spinner-container"
|
||||||
{{ facets.length > 0 ? '' : $root.__('Nothing found.', 'tainacan') }}
|
:style="{ display: facets.length > 0 ? 'none' : 'flex'}">
|
||||||
|
{{ $root.__('Nothing found.', 'tainacan') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue