From 158f4587e2bb69e3a75e4b5163f47bf5bb04e88f Mon Sep 17 00:00:00 2001 From: Eugene Kallivrousis Date: Tue, 8 Apr 2025 19:02:48 -0400 Subject: [PATCH] Updating as per comments from pr --- client/angular-proxy.json | 4 ++-- .../torrent-table.component.html | 10 +++++----- .../torrent-table/torrent-table.component.ts | 19 ++++++++----------- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/client/angular-proxy.json b/client/angular-proxy.json index c829506..08dd006 100644 --- a/client/angular-proxy.json +++ b/client/angular-proxy.json @@ -1,10 +1,10 @@ { "/Api": { - "target": "http://localhost:6500/", + "target": "http://192.168.1.100:6502/", "secure": false }, "/hub": { - "target": "http://localhost:6500/", + "target": "http://192.168.1.100:6502/", "secure": false, "ws": true } diff --git a/client/src/app/torrent-table/torrent-table.component.html b/client/src/app/torrent-table/torrent-table.component.html index fe243e1..630ef4e 100644 --- a/client/src/app/torrent-table/torrent-table.component.html +++ b/client/src/app/torrent-table/torrent-table.component.html @@ -9,7 +9,7 @@ @@ -107,24 +107,24 @@




diff --git a/client/src/app/torrent-table/torrent-table.component.ts b/client/src/app/torrent-table/torrent-table.component.ts index 96fe395..d188077 100644 --- a/client/src/app/torrent-table/torrent-table.component.ts +++ b/client/src/app/torrent-table/torrent-table.component.ts @@ -20,7 +20,7 @@ export class TorrentTableComponent implements OnInit { public isDeleteModalActive: boolean; public deleteError: string; public deleting: boolean; - public selectAll: boolean; + public deleteSelectAll: boolean; public deleteData: boolean; public deleteRdTorrent: boolean; public deleteLocalFiles: boolean; @@ -75,7 +75,7 @@ export class TorrentTableComponent implements OnInit { return el.torrentId; } - public toggleSelectAll(event: any) { + public toggleDeleteSelectAll(event: any) { this.selectedTorrents = []; if (event.target.checked) { @@ -248,16 +248,13 @@ export class TorrentTableComponent implements OnInit { }, }); } - - // Called when "Select All" is toggled - toggleAllOptions() { - this.deleteData = this.selectAll; - this.deleteRdTorrent = this.selectAll; - this.deleteLocalFiles = this.selectAll; + toggleDeleteSelectAllOptions() { + this.deleteData = this.deleteSelectAll; + this.deleteRdTorrent = this.deleteSelectAll; + this.deleteLocalFiles = this.deleteSelectAll; } - // Called when any individual checkbox is toggled - updateSelectAll() { - this.selectAll = this.deleteData && this.deleteRdTorrent && this.deleteLocalFiles; + updateDeleteSelectAll() { + this.deleteSelectAll = this.deleteData && this.deleteRdTorrent && this.deleteLocalFiles; } }