diff --git a/frontend/package.json b/frontend/package.json index 6c12cc27e..5ed68ad9e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -39,6 +39,7 @@ "@stomp/rx-stomp": "^2.3.0", "@stomp/stompjs": "^7.3.0", "@tanstack/angular-query-experimental": "5.100.1", + "@tanstack/angular-table": "^8.21.4", "@tanstack/angular-virtual": "^4.0.13", "chart.js": "^4.5.1", "chartjs-chart-matrix": "^3.0.0", diff --git a/frontend/src/app/features/book/components/book-browser/book-browser.component.html b/frontend/src/app/features/book/components/book-browser/book-browser.component.html index ee6e9e623..c88fe7c37 100644 --- a/frontend/src/app/features/book/components/book-browser/book-browser.component.html +++ b/frontend/src/app/features/book/components/book-browser/book-browser.component.html @@ -128,17 +128,17 @@ @@ -253,38 +253,20 @@ - @if (showTableLoadingPlaceholder()) { -
- } @else if (showGridLoadingPlaceholder()) { -- {{ entityType() === EntityType.LIBRARY ? t('labels.failedLibrary') : t('labels.failedShelf') }} + @switch (entityType()) { + @case (EntityType.LIBRARY) { + {{ t('labels.failedLibrary') }} + } + @case (EntityType.SHELF) { + {{ t('labels.failedShelf') }} + } + @default { + {{ t('labels.failedBooks') }} + } + }