fix task status in task detail page would not be changed when task status is being changed from verifying to downloading

This commit is contained in:
MaysWind 2019-05-25 00:09:54 +08:00
parent 3950c7a528
commit 1d5c1789c9

View file

@ -30,6 +30,11 @@
$scope.context.availableOptions = getAvailableOptions(task.status, !!task.bittorrent);
}
if ($scope.task) {
delete $scope.task.verifiedLength;
delete $scope.task.verifyIntegrityPending;
}
$scope.task = ariaNgCommonService.copyObjectTo(task, $scope.task);
$rootScope.taskContext.list = [$scope.task];
@ -74,6 +79,7 @@
}
var task = response.data;
processTask(task);
if (requireBtPeers(task)) {