Open floriangantner opened 4 months ago
Is your feature request related to a problem? Please describe. As an user I'm frustrated that for search queries with no results i see the export button, but it has no function at all.
Describe the solution you'd like We would like the https://github.com/4Science/dspace-angular/blob/021eb436dbab283d980aa19ff690ed3c6f87964a/src/app/shared/search/search.component.html#L118
to be extended by some further condition:
<ng-container *ngIf="(resultsRD$ | async) != undefined"> <ds-item-export-modal-launcher [searchOptions$]="searchOptions$" *ngIf="showExport && (resultsRD$ | async)?.payload.totalElements > 0" ></ds-item-export-modal-launcher> </ng-container>
This shows the button only when the results are retrieved and the total amount of results is greater than zero.
Describe alternatives or workarounds you've considered
Additional context
Is your feature request related to a problem? Please describe. As an user I'm frustrated that for search queries with no results i see the export button, but it has no function at all.
Describe the solution you'd like We would like the https://github.com/4Science/dspace-angular/blob/021eb436dbab283d980aa19ff690ed3c6f87964a/src/app/shared/search/search.component.html#L118
to be extended by some further condition:
This shows the button only when the results are retrieved and the total amount of results is greater than zero.
Describe alternatives or workarounds you've considered
Additional context