More Polish (#2686)

This commit is contained in:
Joe Milazzo 2024-02-03 15:28:16 -06:00 committed by GitHub
parent 2ef266c676
commit 0b0e858f24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 35 additions and 8 deletions

View file

@ -4,7 +4,13 @@
<ng-container title>
<h2 class="title text-break">
<app-card-actionables (actionHandler)="performAction($event)" [actions]="seriesActions" [labelBy]="series.name" iconClass="fa-ellipsis-v"></app-card-actionables>
<span>{{series.name}}</span>
<span>{{series.name}}
@if(isLoadingExtra || isLoading) {
<div class="spinner-border spinner-border-sm text-primary" role="status">
<span class="visually-hidden">loading...</span>
</div>
}
</span>
</h2>
</ng-container>
<ng-container subtitle *ngIf="series.localizedName !== series.name">

View file

@ -200,6 +200,7 @@ export class SeriesDetailComponent implements OnInit, AfterContentChecked {
isAdmin = false;
hasDownloadingRole = false;
isLoading = true;
isLoadingExtra = false;
showBook = true;
currentlyReadingChapter: Chapter | undefined = undefined;
@ -708,7 +709,11 @@ export class SeriesDetailComponent implements OnInit, AfterContentChecked {
loadPlusMetadata(seriesId: number, libraryType: LibraryType) {
this.isLoadingExtra = true;
this.cdRef.markForCheck();
this.metadataService.getSeriesMetadataFromPlus(seriesId, libraryType).subscribe(data => {
this.isLoadingExtra = false;
this.cdRef.markForCheck();
if (data === null) return;
// Reviews

View file

@ -19,6 +19,4 @@ export class LoadingComponent {
* Uses absolute positioning to ensure it loads over content
*/
@Input() absolute: boolean = false;
constructor() { }
}