mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 01:39:37 +02:00
Correctly load count and rows per page
This commit is contained in:
parent
9ca0d0739b
commit
1d2b3ed4a2
1 changed files with 6 additions and 1 deletions
|
@ -259,9 +259,14 @@ export class MyVideosComponent extends RestTable<Video> implements OnInit, OnDes
|
|||
}
|
||||
|
||||
if (queryParams.start !== undefined) this.pagination.start = +queryParams.start
|
||||
if (queryParams.count !== undefined) this.pagination.count = +queryParams.count
|
||||
|
||||
if (queryParams.count !== undefined) {
|
||||
this.pagination.count = this.rowsPerPage = +queryParams.count
|
||||
}
|
||||
|
||||
if (queryParams.sortOrder !== undefined) this.sort.order = +queryParams.sortOrder
|
||||
if (queryParams.sortField !== undefined) this.sort.field = queryParams.sortField
|
||||
|
||||
if (queryParams.search !== undefined) this.search = queryParams.search
|
||||
|
||||
this.reloadData()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue