diff options
author | Chocobozzz <me@florianbigard.com> | 2023-01-20 15:06:08 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-01-20 15:06:08 +0100 |
commit | e854d57bed56bcbba4d191af54125ae6dd569a88 (patch) | |
tree | c0f772a395301dbbc40e4a014fce9fb5fec921d0 /client/src/app/core/rest | |
parent | 345f579b8e36ed743be66a1541c7444098eb0a02 (diff) | |
download | PeerTube-e854d57bed56bcbba4d191af54125ae6dd569a88.tar.gz PeerTube-e854d57bed56bcbba4d191af54125ae6dd569a88.tar.zst PeerTube-e854d57bed56bcbba4d191af54125ae6dd569a88.zip |
Refactor row selection reset
Diffstat (limited to 'client/src/app/core/rest')
-rw-r--r-- | client/src/app/core/rest/rest-table.ts | 8 |
1 files changed, 7 insertions, 1 deletions
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 <T = unknown> { | |||
81 | return this.selectedRows.length !== 0 | 81 | return this.selectedRows.length !== 0 |
82 | } | 82 | } |
83 | 83 | ||
84 | protected abstract reloadData (): void | 84 | protected abstract reloadDataInternal (): void |
85 | |||
86 | protected reloadData () { | ||
87 | this.selectedRows = [] | ||
88 | |||
89 | this.reloadDataInternal() | ||
90 | } | ||
85 | 91 | ||
86 | private getSortLocalStorageKey () { | 92 | private getSortLocalStorageKey () { |
87 | return 'rest-table-sort-' + this.getIdentifier() | 93 | return 'rest-table-sort-' + this.getIdentifier() |