Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show bulk export button only search results exists #80

Open
floriangantner opened this issue Mar 6, 2024 · 0 comments
Open

show bulk export button only search results exists #80

floriangantner opened this issue Mar 6, 2024 · 0 comments

Comments

@floriangantner
Copy link

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.

Screenshot 2024-03-06 at 10-40-31 FIS Universität Bamberg My FIS

Describe the solution you'd like
We would like the

<ds-item-export-modal-launcher [searchOptions$]="searchOptions$" *ngIf="showExport"></ds-item-export-modal-launcher>

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant