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:
parent
3950c7a528
commit
1d5c1789c9
|
@ -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)) {
|
||||
|
|
Reference in a new issue