feat(torrent): hide deleted torrent peers from client side downloading list page

This commit is contained in:
OldHawk
2017-08-29 14:34:50 +08:00
parent 6564617e4e
commit ad48d49f4d

View File

@@ -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({