mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-08-05 01:50:47 +02:00
feat(torrent): hide deleted torrent peers from client side downloading list page
This commit is contained in:
@@ -74,6 +74,11 @@
|
||||
vm.getDownloadingTorrend = function () {
|
||||
PeersService.getMyDownloadingList(function (items) {
|
||||
vm.downloadingList = items;
|
||||
for (var i = items.length - 1; i >= 0; i--) {
|
||||
if (!items[i].torrent) {
|
||||
items.splice(i, 1);
|
||||
}
|
||||
}
|
||||
vm.buildPager();
|
||||
}, function (err) {
|
||||
Notification.error({
|
||||
|
||||
Reference in New Issue
Block a user