From e854d57bed56bcbba4d191af54125ae6dd569a88 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 20 Jan 2023 15:06:08 +0100 Subject: Refactor row selection reset --- client/src/app/core/rest/rest-table.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'client/src/app/core') diff --git a/client/src/app/core/rest/rest-table.ts b/client/src/app/core/rest/rest-table.ts index cfaa16af9..707110d7f 100644 --- a/client/src/app/core/rest/rest-table.ts +++ b/client/src/app/core/rest/rest-table.ts @@ -81,7 +81,13 @@ export abstract class RestTable { return this.selectedRows.length !== 0 } - protected abstract reloadData (): void + protected abstract reloadDataInternal (): void + + protected reloadData () { + this.selectedRows = [] + + this.reloadDataInternal() + } private getSortLocalStorageKey () { return 'rest-table-sort-' + this.getIdentifier() -- cgit v1.2.3