[Library]: Remove no filters available when results has not been loaded.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@56892 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-08-26 10:42:57 +00:00
parent e03d75cb51
commit 8df218bff9
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
</h5>
<div aria-expanded="false">
<div [class]="showMoreInline ? '' : 'searchFilterBoxValues' ">
<div *ngFor = "let value of getSelectedValues(filter,'num')" class = "uk-animation-fade filterItem">
<div *ngFor = "let value of getSelectedValues(filter,'num')" class="uk-animation-fade filterItem">
<div title = "{{value.name}}">
<input *ngIf="!filter.valueIsUnique" [(ngModel)]="value.selected" type="checkbox" (ngModelChange)="filterChange(value.selected)" />
<input *ngIf="filter.valueIsUnique" type="radio" (click)="uniqueFilterChange(value)"

View File

@ -105,7 +105,7 @@
</div>
</div>
<div *ngIf="filters.length === 0 && searchUtils.keyword.length === 0" class="uk-margin-top">
<div *ngIf="filters.length === 0 && searchUtils.keyword.length === 0 && results.length > 0" class="uk-margin-top">
<span class="uk-text-meta">No filters available</span>
</div>
<div class="uk-text-large">Filter By:</div>
@ -168,7 +168,7 @@
<a *ngIf= "showUnknownFilters" class = " portal-link" (click) = "clearFilters() " >Try new Query</a>
</div>
</div>
<div *ngIf="filters.length === 0 && searchUtils.keyword.length === 0" class="uk-margin-top">
<div *ngIf="filters.length === 0 && searchUtils.keyword.length === 0 && results.length > 0" class="uk-margin-top">
<span class="uk-text-meta">No filters available</span>
</div>
<search-filter *ngFor="let filter of filters " [filterValuesNum]="filterValuesNum" [showMoreInline]="showMoreFilterValuesInline" [isDisabled]="disableForms" [filter]="filter" [showResultCount]=showResultCount (onFilterChange)="filterChanged($event)" ></search-filter>