Back to Kavita

Download Queue Drawer.Component

UI/Web/src/app/nav/_components/download-queue-drawer/download-queue-drawer.component.html

0.9.01.5 KB
Original Source
{{ t('title') }}

@if (downloadService.isPaused()) { }

  • {{ t('tab-downloading') }} {{ downloadingTabCount() }} @if (downloadService.activeItem() || downloadService.queuedItems().length > 0) { @if (downloadService.isPaused()) { {{ t('resume') }} } @else { {{ t('pause') }} } } @if (downloadService.activeItem(); as active) {

} @if (downloadService.failedItems().length > 0) { {{ t('failed') }} ({{ downloadService.failedItems().length }}) {{ t('clear-all') }}{{ t('retry-all') }}

@for (item of downloadService.failedItems(); track item.id; let last = $last) { @if (!last) {

} }

} @if (downloadService.queuedItems().length > 0) { {{ t('queued') }} ({{ downloadService.queuedItems().length }}){{ t('cancel-all') }} @for (item of downloadService.queuedItems(); track item.id; let last = $last) { @if (!last) {

} } } @if (!downloadService.activeItem() && downloadService.queuedItems().length === 0 && downloadService.failedItems().length === 0) { {{ t('empty') }} }

  • {{ t('tab-completed') }} {{ completedTabCount() }} @if (completedToday().length > 0 || olderCount() > 0) { @if (completedToday().length > 0) { {{ t('today') }}{{ t('clear-all') }} @for (item of completedToday(); track item.id; let last = $last) { @if (!last) {

} } } @if (olderCount() > 0) { @if (completedToday().length > 0) {

} {{ t('older') }} ({{ olderCount() }}) {{ t('clear-all') }}

@for (item of olderItems(); track item.id; let last = $last) { @if (!last) {

} } } } @else { {{ t('empty') }} }