From ecb5fd63ac0655d369dd201af08622de61d771a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Thu, 2 Nov 2023 05:24:09 +0200 Subject: [PATCH] Paginated entities update --- src/lib/listing/services/paginated-entities.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/listing/services/paginated-entities.service.ts b/src/lib/listing/services/paginated-entities.service.ts index 2861950..53c898b 100644 --- a/src/lib/listing/services/paginated-entities.service.ts +++ b/src/lib/listing/services/paginated-entities.service.ts @@ -35,7 +35,11 @@ export class PaginatedEntitiesService< return this._currentConfig; } - loadPage(options: Options, page = 0, size = 100): Observable { + reloadPage(): Observable { + return this.loadPage(this._currentConfig.options, this._currentConfig.page, this._currentConfig.pageSize); + } + + loadPage(options: Options = {} as Options, page = 0, size = 100): Observable { return super._post>({ page, size, options }).pipe( tap( response =>