load webadmin after migration

This commit is contained in:
Girish Ramakrishnan
2016-06-29 23:41:42 -05:00
parent 9c8166a2b8
commit f2c897a87d
2 changed files with 3 additions and 2 deletions

View File

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