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:
Mateus Machado Luna 2019-09-23 14:08:57 -03:00
parent b9b32b1438
commit 15e143b09a
2 changed files with 3 additions and 8 deletions

View File

@ -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) {

View File

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