Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Correctly load count and rows per page

Chocobozzz1d2b3ed4a260
diff --git a/client/src/app/+my-library/my-videos/my-videos.component.ts b/client/src/app/+my-library/my-videos/my-videos.component.ts
index 927c7f27a4..dfdafeb5d6 100644
--- a/client/src/app/+my-library/my-videos/my-videos.component.ts
+++ b/client/src/app/+my-library/my-videos/my-videos.component.ts
@@ -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()