diff --git a/src/progress.js b/src/progress.js index f8d9d4680..ef2b0b94d 100644 --- a/src/progress.js +++ b/src/progress.js @@ -17,7 +17,8 @@ var assert = require('assert'), // otherwise no such operation is currently ongoing var progress = { update: null, - backup: null + backup: null, + migrate: null }; // We use -1 for percentage to indicate errors diff --git a/webadmin/src/js/update.js b/webadmin/src/js/update.js index 28d3e9f87..2f3e35d5c 100644 --- a/webadmin/src/js/update.js +++ b/webadmin/src/js/update.js @@ -17,7 +17,7 @@ app.controller('Controller', ['$scope', '$http', '$interval', function ($scope, $http.get('/api/v1/cloudron/progress').success(function(data, status) { if (status === 404) return; // just wait until we create the progress.json on the server side if (status !== 200 || typeof data !== 'object') return console.error(status, data); - if (data.update === null && data.migrate === null) return $scope.loadWebadmin(); + if (!data.update && !data.migrate) return $scope.loadWebadmin(); if (data.update) { if (data.update.percent === -1) {