1
0
Fork 0
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:
Chocobozzz 2021-12-24 15:37:42 +01:00
parent 656ed49f24
commit e6492b2de6
No known key found for this signature in database
GPG key ID: 583A612D890159BE
14 changed files with 19 additions and 33 deletions

View file

@ -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()