mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Remove unnecessary onPage event on admin tables
This commit is contained in:
parent
656ed49f24
commit
e6492b2de6
14 changed files with 19 additions and 33 deletions
|
@ -47,11 +47,15 @@ export abstract class RestTable {
|
|||
field: event.sortField
|
||||
}
|
||||
|
||||
this.rowsPerPage = event.rows
|
||||
|
||||
this.pagination = {
|
||||
start: event.first,
|
||||
count: this.rowsPerPage
|
||||
}
|
||||
|
||||
this.expandedRows = {}
|
||||
|
||||
this.reloadData()
|
||||
this.saveSort()
|
||||
}
|
||||
|
@ -60,22 +64,6 @@ export abstract class RestTable {
|
|||
peertubeLocalStorage.setItem(this.getSortLocalStorageKey(), JSON.stringify(this.sort))
|
||||
}
|
||||
|
||||
onPage (event: { first: number, rows: number }) {
|
||||
logger('On page %o.', event)
|
||||
|
||||
if (this.rowsPerPage !== event.rows) {
|
||||
this.rowsPerPage = event.rows
|
||||
this.pagination = {
|
||||
start: event.first,
|
||||
count: this.rowsPerPage
|
||||
}
|
||||
|
||||
this.reloadData()
|
||||
}
|
||||
|
||||
this.expandedRows = {}
|
||||
}
|
||||
|
||||
onSearch (search: string) {
|
||||
this.search = search
|
||||
this.reloadData()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue