Fix metadata center dialog mode being ignored on book card info button (#3218) (#3222)

This commit is contained in:
ACX
2026-03-07 13:46:18 -07:00
committed by GitHub
parent 4aadbefe4f
commit 60f2561bd6
2 changed files with 2 additions and 9 deletions
@@ -34,8 +34,8 @@
@if (_isSeriesViewActive) {
<p-button [rounded]="true" icon="pi pi-info" class="info-btn" (click)="openSeriesInfo()" [ariaLabel]="'book.card.alt.viewSeriesInfo' | transloco"></p-button>
} @else {
<a [routerLink]="urlHelper.getBookUrl(book)" (click)="prepareNavigation(book)"><p-button [rounded]="true" icon="pi pi-info" class="info-btn" [ariaLabel]="'book.card.alt.viewDetails' | transloco">
</p-button></a>
<p-button [rounded]="true" icon="pi pi-info" class="info-btn" (click)="openBookInfo(book)" [ariaLabel]="'book.card.alt.viewDetails' | transloco">
</p-button>
}
@if (!_isSeriesViewActive && hasDigitalFile()) {
@@ -688,13 +688,6 @@ export class BookCardComponent implements OnInit, OnChanges, OnDestroy {
}
}
prepareNavigation(book: Book): void {
const allBookIds = this.bookNavigationService.getAvailableBookIds();
if (allBookIds.length > 0) {
this.bookNavigationService.setNavigationContext(allBookIds, book.id);
}
}
openBookInfo(book: Book): void {
const allBookIds = this.bookNavigationService.getAvailableBookIds();
if (allBookIds.length > 0) {