From 3dabba1b47de47e4f774764f7771e3c102dfb2ce Mon Sep 17 00:00:00 2001 From: X4Lo Date: Mon, 1 Apr 2024 21:24:24 +0000 Subject: [PATCH] clean up + renamed functions --- .../entry-list/entry-list.component.html | 34 ------------------- .../lists/entry-list/entry-list.component.ts | 6 ++-- 2 files changed, 3 insertions(+), 37 deletions(-) diff --git a/frontend/src/app/features/lists/entry-list/entry-list.component.html b/frontend/src/app/features/lists/entry-list/entry-list.component.html index 8f3e892..f06a71a 100644 --- a/frontend/src/app/features/lists/entry-list/entry-list.component.html +++ b/frontend/src/app/features/lists/entry-list/entry-list.component.html @@ -1,37 +1,3 @@ - - -
diff --git a/frontend/src/app/features/lists/entry-list/entry-list.component.ts b/frontend/src/app/features/lists/entry-list/entry-list.component.ts index e8869fb..4d8b8d8 100644 --- a/frontend/src/app/features/lists/entry-list/entry-list.component.ts +++ b/frontend/src/app/features/lists/entry-list/entry-list.component.ts @@ -28,15 +28,15 @@ export class EntryListComponent implements OnInit { } else { console.log("page n'existe pas"); this.tmdbService - .getPopularMovies(this.currentPage, this.isMovies) + .getPopular(this.currentPage, this.isMovies) .subscribe((myEntries) => { - this.pages[this.currentPage] = myEntries + this.pages[this.currentPage] = myEntries; this.entries = this.pages[this.currentPage]; }); } } else if (this.type == 'trending') { this.tmdbService - .getTrendingMovies(this.currentPage, this.isMovies) + .getTrending(this.currentPage, this.isMovies) .subscribe((myEntries) => (this.entries = myEntries)); } }