@if (entityType$ | async; as entityType) {

@if (entityType === EntityType.ALL_BOOKS) { @if (currentFilterLabel && rawFilterParamFromUrl) { {{ currentFilterLabel }} } @else if (hasSidebarFilters || hasSearchTerm) { All Books (Filtered) } @else { All Books } } @else if (entityType === EntityType.UNSHELVED) { {{ (hasSidebarFilters || hasSearchTerm) ? 'Unshelved Books (Filtered)' : 'Unshelved Books' }} } @else { {{ entityType }}: {{ (entity$ | async)?.name }}{{ (hasSidebarFilters || hasSearchTerm) ? ' (Filtered)' : '' }} }

@if (userService.userState$ | async; as userState) { @if (entityType !== EntityType.ALL_BOOKS && entityType !== EntityType.UNSHELVED && (userState.user!.permissions.admin || userState.user!.permissions.canManipulateLibrary)) {
} } }
@if (isFilterActive) { } @if (currentViewMode === 'table') {

Set as default?

}
{{ coverScalePreferenceService.scaleFactor.toFixed(2) }}x
{{ item.label }} @if (item.icon) { }
@if (bookState$ | async; as bookState) {
@if (!bookState?.loaded && !bookState?.error) {
}
@if (bookState?.error) {

{{ entityType === EntityType.LIBRARY ? "Failed to load library's books!" : "Failed to load shelf's books!" }}

} @if (!bookState?.error && bookState?.loaded && bookState?.books?.length === 0) {

This collection has no books!

} @if (bookState?.books; as books) { @if (currentViewMode === 'table' && books.length > 0) { } @if (currentViewMode === 'grid') {
@for (book of scroll.viewPortItems; let i = $index; track book) {
}
} } @if (selectedBooks.size > 0) { @if (userService.userState$ | async; as userState) { } }
}
@if (this.showFilter) {
}