Commits

Michael Spalti authored f8d0dab747c
fixed issue with browse back button
No tags

src/app/shared/browse-by/browse-by.component.html

Modified
1 1 <ng-container *ngVar="(objects$ | async) as objects">
2 2 <h3 [ngClass]="{'sr-only': parentname }">{{title | translate}}</h3>
3 3 <ng-container *ngComponentOutlet="getStartsWithComponent(); injector: objectInjector;"></ng-container>
4 4 <div *ngIf="objects?.hasSucceeded && !objects?.isLoading && objects?.payload?.page.length > 0" @fadeIn>
5 5 <div *ngIf="shouldDisplayResetButton$ |async" class="mb-2 reset">
6 - <ds-themed-results-back-button [paginationConfig]="paginationConfig" [previousPage$]="previousPage$"></ds-themed-results-back-button>
6 + <ds-results-back-button [paginationConfig]="paginationConfig"
7 + [previousPage$]="previousPage$"
8 + [alwaysShowButton]=true></ds-results-back-button>
7 9 </div>
8 10 <ds-viewable-collection
9 11 [config]="paginationConfig"
10 12 [sortConfig]="sortConfig"
11 13 [showPaginator]="showPaginator"
12 14 [objects]="objects"
13 15 (prev)="goPrev()"
14 16 (next)="goNext()">
15 17 </ds-viewable-collection>
16 18 </div>
17 19 <ds-themed-loading *ngIf="!objects || objects?.isLoading" message="{{'loading.browse-by' | translate}}"></ds-themed-loading>
18 20 <ds-error *ngIf="objects?.hasFailed" message="{{'error.browse-by' | translate}}"></ds-error>
19 21 <div *ngIf="!objects?.isLoading && objects?.payload?.page.length === 0">
20 22 <div *ngIf="shouldDisplayResetButton$ |async" class="d-inline-block mb-4 reset">
21 - <ds-themed-results-back-button [paginationConfig]="paginationConfig" [previousPage$]="previousPage$" ></ds-themed-results-back-button>
23 + <ds-results-back-button [paginationConfig]="paginationConfig"
24 + [previousPage$]="previousPage$"
25 + [alwaysShowButton]=true></ds-results-back-button>
22 26 </div>
23 27 <div class="alert alert-info w-100" role="alert">
24 28 {{'browse.empty' | translate}}
25 29 </div>
26 30 </div>
27 31 </ng-container>
28 32

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut