76654: Feedback to pagination

This commit is contained in:
Yana De Pauw
2021-02-23 11:01:40 +01:00
parent fab226912f
commit d07f44ac41
31 changed files with 184 additions and 116 deletions

View File

@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { Component, OnDestroy, OnInit } from '@angular/core';
import { combineLatest as observableCombineLatest, Observable, zip } from 'rxjs';
import { RemoteData } from '../../../core/data/remote-data';
import { PaginatedList } from '../../../core/data/paginated-list.model';
@@ -21,7 +21,7 @@ import { PaginationService } from '../../../core/pagination/pagination.service';
selector: 'ds-bitstream-formats',
templateUrl: './bitstream-formats.component.html'
})
export class BitstreamFormatsComponent implements OnInit {
export class BitstreamFormatsComponent implements OnInit, OnDestroy {
/**
* A paginated list of bitstream formats to be shown on the page
@@ -58,6 +58,7 @@ export class BitstreamFormatsComponent implements OnInit {
) {
}
/**
* Deletes the currently selected formats from the registry and updates the presented list
*/
@@ -150,4 +151,9 @@ export class BitstreamFormatsComponent implements OnInit {
})
);
}
ngOnDestroy(): void {
this.paginationService.clearPagination(this.pageConfig.id);
}
}