From 1d5c1789c9616811757b0203f30d2d6014f030ad Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 25 May 2019 00:09:54 +0800 Subject: [PATCH] fix task status in task detail page would not be changed when task status is being changed from verifying to downloading --- src/scripts/controllers/task-detail.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scripts/controllers/task-detail.js b/src/scripts/controllers/task-detail.js index 03d9aba..dbc8ec2 100644 --- a/src/scripts/controllers/task-detail.js +++ b/src/scripts/controllers/task-detail.js @@ -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)) {