]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/rest/rest-table.ts
Prevent edition with 0 task
[github/Chocobozzz/PeerTube.git] / client / src / app / core / rest / rest-table.ts
index cfaa16af9c626026ac456bb7a1759e527b948928..707110d7f7f404aeacaea73f3e8647fae0202360 100644 (file)
@@ -81,7 +81,13 @@ export abstract class RestTable <T = unknown> {
     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()