Redirect to the webadmin if update progress is 100

This commit is contained in:
Johannes Zellner
2017-01-26 15:52:38 -08:00
parent ddf5c51737
commit de451b2fe8

View File

@@ -20,7 +20,9 @@ app.controller('Controller', ['$scope', '$http', '$interval', function ($scope,
if (!data.update && !data.migrate) return $scope.loadWebadmin();
if (data.update) {
if (data.update.percent === -1) {
if (data.update.percent >= 100) {
return $scope.loadWebadmin();
} else if (data.update.percent === -1) {
$scope.title = 'Update Error';
$scope.error = true;
$scope.message = data.update.message;