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:
parent
9436936cf6
commit
cd940f40cb
17 changed files with 107 additions and 78 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue