diff --git a/client/src/app/torrent-table/torrent-table.component.html b/client/src/app/torrent-table/torrent-table.component.html
index b728bdc..536d57d 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 @@
0 && selectedTorrents.length === torrents.length"
/>
|
@@ -107,19 +107,25 @@
+
+
+
diff --git a/client/src/app/torrent-table/torrent-table.component.ts b/client/src/app/torrent-table/torrent-table.component.ts
index 3f17925..d188077 100644
--- a/client/src/app/torrent-table/torrent-table.component.ts
+++ b/client/src/app/torrent-table/torrent-table.component.ts
@@ -20,6 +20,7 @@ export class TorrentTableComponent implements OnInit {
public isDeleteModalActive: boolean;
public deleteError: string;
public deleting: boolean;
+ public deleteSelectAll: boolean;
public deleteData: boolean;
public deleteRdTorrent: boolean;
public deleteLocalFiles: boolean;
@@ -74,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) {
@@ -247,4 +248,13 @@ export class TorrentTableComponent implements OnInit {
},
});
}
+ toggleDeleteSelectAllOptions() {
+ this.deleteData = this.deleteSelectAll;
+ this.deleteRdTorrent = this.deleteSelectAll;
+ this.deleteLocalFiles = this.deleteSelectAll;
+ }
+
+ updateDeleteSelectAll() {
+ this.deleteSelectAll = this.deleteData && this.deleteRdTorrent && this.deleteLocalFiles;
+ }
}