[ADF-3455] Show more/less buttons in Search Radio Component hide when they are not necessary (#3734)

This commit is contained in:
davidcanonieto 2018-09-06 14:01:06 +01:00 committed by Eugenio Romano
parent 6c748cc24b
commit 6ad37c1ecc

View File

@ -10,13 +10,13 @@
<div class="facet-buttons" *ngIf="!options.fitsPage">
<button mat-icon-button
[disabled]="!options.canShowLessItems"
*ngIf="options.canShowLessItems"
title="{{ 'SEARCH.FILTER.ACTIONS.SHOW-LESS' | translate }}"
(click)="options.showLessItems()">
<mat-icon>keyboard_arrow_up</mat-icon>
</button>
<button mat-icon-button
[disabled]="!options.canShowMoreItems"
*ngIf="options.canShowMoreItems"
title="{{ 'SEARCH.FILTER.ACTIONS.SHOW-MORE' | translate }}"
(click)="options.showMoreItems()">
<mat-icon>keyboard_arrow_down</mat-icon>