1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Support bulk registration request removal

This commit is contained in:
Chocobozzz 2023-01-20 14:58:05 +01:00
parent 9436936cf6
commit cd940f40cb
No known key found for this signature in database
GPG key ID: 583A612D890159BE
17 changed files with 107 additions and 78 deletions

View file

@ -7,7 +7,7 @@ import { RestPagination } from './rest-pagination'
const debugLogger = debug('peertube:tables:RestTable')
export abstract class RestTable {
export abstract class RestTable <T = unknown> {
abstract totalRecords: number
abstract sort: SortMeta
@ -17,6 +17,8 @@ export abstract class RestTable {
rowsPerPage = this.rowsPerPageOptions[0]
expandedRows = {}
selectedRows: T[] = []
search: string
protected route: ActivatedRoute
@ -75,6 +77,10 @@ export abstract class RestTable {
this.reloadData()
}
isInSelectionMode () {
return this.selectedRows.length !== 0
}
protected abstract reloadData (): void
private getSortLocalStorageKey () {