From e11bd8128186fb37befa095e5fb0f6bd5893943a Mon Sep 17 00:00:00 2001 From: "aditya.chandel" <> Date: Tue, 11 Mar 2025 22:55:54 -0600 Subject: [PATCH] Remove individual spinners from dashboard page --- .../dashboard-scroller.component.html | 10 +++------- .../dashboard-scroller.component.ts | 16 +--------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/booklore-ui/src/app/dashboard/components/dashboard-scroller/dashboard-scroller.component.html b/booklore-ui/src/app/dashboard/components/dashboard-scroller/dashboard-scroller.component.html index 8f236bdf1..eba677786 100644 --- a/booklore-ui/src/app/dashboard/components/dashboard-scroller/dashboard-scroller.component.html +++ b/booklore-ui/src/app/dashboard/components/dashboard-scroller/dashboard-scroller.component.html @@ -1,17 +1,13 @@

{{ title }}

-
- -
- -
+

{{ bookListType === 'lastRead' ? "You haven't read any books yet!" : "No books have been added to BookLore!" }}

-
+

Failed to load books! :(

diff --git a/booklore-ui/src/app/dashboard/components/dashboard-scroller/dashboard-scroller.component.ts b/booklore-ui/src/app/dashboard/components/dashboard-scroller/dashboard-scroller.component.ts index 513b17399..8a0d47319 100644 --- a/booklore-ui/src/app/dashboard/components/dashboard-scroller/dashboard-scroller.component.ts +++ b/booklore-ui/src/app/dashboard/components/dashboard-scroller/dashboard-scroller.component.ts @@ -18,7 +18,7 @@ import {Book} from '../../../book/model/book.model'; ], standalone: true }) -export class DashboardScrollerComponent implements OnInit, OnChanges { +export class DashboardScrollerComponent { @Input() bookListType: 'lastRead' | null = null; @Input() title: string = 'Last Read Books'; @@ -26,18 +26,4 @@ export class DashboardScrollerComponent implements OnInit, OnChanges { @ViewChild('scrollContainer') scrollContainer!: ElementRef; - - isLoading = true; - - ngOnInit(): void { - if (this.books !== undefined) { - this.isLoading = false; - } - } - - ngOnChanges(): void { - if (this.books !== undefined) { - this.isLoading = false; - } - } }