From d405118360b7356d86cd570ceb665d38cc1c17f7 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sun, 3 May 2020 16:20:19 +0200 Subject: Bind expanded rows to item ids instead of row number --- client/src/app/shared/rest/rest-table.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/rest/rest-table.ts b/client/src/app/shared/rest/rest-table.ts index 891fb7b2b..4dd0f5ff3 100644 --- a/client/src/app/shared/rest/rest-table.ts +++ b/client/src/app/shared/rest/rest-table.ts @@ -13,6 +13,7 @@ export abstract class RestTable { search: string rowsPerPageOptions = [ 10, 20, 50, 100 ] rowsPerPage = this.rowsPerPageOptions[0] + expandedRows = {} private searchStream: Subject @@ -73,6 +74,10 @@ export abstract class RestTable { this.searchStream.next(target.value) } + onPage () { + this.expandedRows = {} + } + protected abstract loadData (): void private getSortLocalStorageKey () { -- cgit v1.2.3