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; - } - } }