@if (entityType$ | async; as entityType) { @if (entityType !== EntityType.ALL_BOOKS && entityType !== EntityType.UNSHELVED) {

{{ entityType }}: {{ (entity$ | async)?.name }}

} @if (entityType === EntityType.ALL_BOOKS) {

All Books

} @if (entityType === EntityType.UNSHELVED) {

Unshelved Books

} @if (userService.userState$ | async; as userData) {
@if (entityType !== EntityType.ALL_BOOKS && entityType !== EntityType.UNSHELVED && (userData.permissions.admin || userData.permissions.canManipulateLibrary) ) {
}
} }
@if (isFilterActive) { }
{{ scaleFactor.toFixed(2) }}x
{{ item.label }} @if (item.icon) { }
@if (bookTitle) { }
@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; track book) {
}
}
} @if (selectedBooks.size > 0) { }
}