From 086b2f3bb89d54ddaa1cd75ec386e7eb9a4e32d3 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Tue, 20 Jun 2017 13:05:09 +0200 Subject: [PATCH] Fixed a case where the previous backup's progress "hangs" after the backup is stopped. --- .../Server/webroot/ngax/scripts/controllers/StateController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Duplicati/Server/webroot/ngax/scripts/controllers/StateController.js b/Duplicati/Server/webroot/ngax/scripts/controllers/StateController.js index c280e1087..7ca9cedfe 100644 --- a/Duplicati/Server/webroot/ngax/scripts/controllers/StateController.js +++ b/Duplicati/Server/webroot/ngax/scripts/controllers/StateController.js @@ -24,7 +24,7 @@ backupApp.controller('StateController', function($scope, $timeout, ServerStatus, function updateStateDisplay() { var text = gettextCatalog.getString('Running ...'); var pg = -1; - if ($scope.state.lastPgEvent != null) + if ($scope.state.lastPgEvent != null && $scope.state.activeTask != null) { text = ServerStatus.progress_state_text[$scope.state.lastPgEvent.Phase || ''] || $scope.state.lastPgEvent.Phase; @@ -72,6 +72,7 @@ backupApp.controller('StateController', function($scope, $timeout, ServerStatus, }; $scope.$watch('state.lastPgEvent', updateStateDisplay, true); + $scope.$on('serverstatechanged', updateStateDisplay); $scope.stopDialog = function() { if ($scope.activeTaskID == null)