From 9a04c42e7963e759062640bf11b229bd8da9cc03 Mon Sep 17 00:00:00 2001 From: 4gray Date: Wed, 4 Feb 2026 22:52:52 +0100 Subject: [PATCH] refactor: remove unused back navigation and clean up downloads component --- .../xtream-tauri/downloads/downloads.component.html | 13 ++++++++----- .../xtream-tauri/downloads/downloads.component.ts | 7 +------ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/apps/web/src/app/xtream-tauri/downloads/downloads.component.html b/apps/web/src/app/xtream-tauri/downloads/downloads.component.html index dbd0919a0..85bfbfd33 100644 --- a/apps/web/src/app/xtream-tauri/downloads/downloads.component.html +++ b/apps/web/src/app/xtream-tauri/downloads/downloads.component.html @@ -1,9 +1,6 @@
-

{{ 'DOWNLOADS.TITLE' | translate }}

@if (activeCount() > 0) { {{ activeCount() }} @@ -25,7 +22,9 @@
folder - {{ downloadFolder() || ('DOWNLOADS.NO_FOLDER' | translate) }} + {{ + downloadFolder() || ('DOWNLOADS.NO_FOLDER' | translate) + }} @@ -81,7 +80,11 @@ {{ getStatusIcon(item.status) }} - {{ 'DOWNLOADS.STATUS.' + item.status.toUpperCase() | translate }} + {{ + 'DOWNLOADS.STATUS.' + + item.status.toUpperCase() + | translate + }} @if ( diff --git a/apps/web/src/app/xtream-tauri/downloads/downloads.component.ts b/apps/web/src/app/xtream-tauri/downloads/downloads.component.ts index eb282a930..67a73da3b 100644 --- a/apps/web/src/app/xtream-tauri/downloads/downloads.component.ts +++ b/apps/web/src/app/xtream-tauri/downloads/downloads.component.ts @@ -9,7 +9,7 @@ import { MatButtonModule } from '@angular/material/button'; import { MatIcon } from '@angular/material/icon'; import { MatProgressBarModule } from '@angular/material/progress-bar'; import { MatTooltip } from '@angular/material/tooltip'; -import { ActivatedRoute, Router } from '@angular/router'; +import { ActivatedRoute } from '@angular/router'; import { TranslatePipe } from '@ngx-translate/core'; import { DownloadItem, @@ -31,7 +31,6 @@ import { }) export class DownloadsComponent implements OnInit { private readonly route = inject(ActivatedRoute); - private readonly router = inject(Router); readonly downloadsService = inject(DownloadsService); readonly downloads = this.downloadsService.downloads; @@ -135,10 +134,6 @@ export class DownloadsComponent implements OnInit { await this.downloadsService.clearCompleted(playlistId); } - goBack() { - this.router.navigate(['..'], { relativeTo: this.route }); - } - formatEpisodeLabel(item: DownloadItem): string { if (item.contentType !== 'episode') return ''; const s = item.seasonNumber?.toString().padStart(2, '0') || '00';