From 35ff35f8f851c2f7e4e32dcc186089a5e37d2745 Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Wed, 22 Jun 2022 14:04:07 -0500 Subject: [PATCH] Fixed a bug where there was no pagination on the dashboard and it would take some time to load (#1329) --- UI/Web/src/app/dashboard/dashboard.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UI/Web/src/app/dashboard/dashboard.component.ts b/UI/Web/src/app/dashboard/dashboard.component.ts index b772de46d..e3a6752b5 100644 --- a/UI/Web/src/app/dashboard/dashboard.component.ts +++ b/UI/Web/src/app/dashboard/dashboard.component.ts @@ -114,9 +114,9 @@ export class DashboardComponent implements OnInit, OnDestroy { } loadOnDeck() { - let api = this.seriesService.getOnDeck(); + let api = this.seriesService.getOnDeck(0, 1, 30); if (this.libraryId > 0) { - api = this.seriesService.getOnDeck(this.libraryId); + api = this.seriesService.getOnDeck(this.libraryId, 1, 30); } api.pipe(takeUntil(this.onDestroy)).subscribe((updatedSeries) => { this.inProgress = updatedSeries.result; @@ -124,9 +124,9 @@ export class DashboardComponent implements OnInit, OnDestroy { } loadRecentlyAddedSeries() { - let api = this.seriesService.getRecentlyAdded(); + let api = this.seriesService.getRecentlyAdded(0, 1, 30); if (this.libraryId > 0) { - api = this.seriesService.getRecentlyAdded(this.libraryId); + api = this.seriesService.getRecentlyAdded(this.libraryId, 1, 30); } api.pipe(takeUntil(this.onDestroy)).subscribe((updatedSeries) => { this.recentlyAddedSeries = updatedSeries.result;