68729: disableRouteParameterUpdate for version list pagination

This commit is contained in:
Kristof De Langhe
2020-02-19 12:43:06 +01:00
parent d7da83ad5a
commit 22ff110e9d
2 changed files with 2 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
[paginationOptions]="options"
[pageInfoState]="versions"
[collectionSize]="versions?.totalElements"
[disableRouteParameterUpdate]="true"
(pageChange)="switchPage($event)">
<table class="table table-striped my-2">
<thead>

View File

@@ -102,6 +102,7 @@ export class ItemVersionsComponent implements OnInit {
* @param page
*/
switchPage(page: number) {
this.options.currentPage = page;
this.currentPage$.next(page);
}