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

master
MaysWind 2019-05-25 00:09:54 +08:00
parent 3950c7a528
commit 1d5c1789c9
1 changed files with 6 additions and 0 deletions

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)) {