Fix restart callback
This commit is contained in:
parent
0cea847f27
commit
8e0c1a7d74
3 changed files with 8 additions and 10 deletions
|
@ -104,8 +104,9 @@ function SetupCtrl($scope, $timeout, ApiService, Features, UserService, Containe
|
|||
|
||||
$scope.restartContainer = function(state) {
|
||||
$scope.currentStep = state;
|
||||
ContainerService.restartContainer();
|
||||
$scope.checkStatus();
|
||||
ContainerService.restartContainer(function() {
|
||||
$scope.checkStatus()
|
||||
});
|
||||
};
|
||||
|
||||
$scope.showSuperuserPanel = function() {
|
||||
|
|
|
@ -194,10 +194,9 @@ function SuperUserAdminCtrl($scope, $timeout, ApiService, Features, UserService,
|
|||
backdrop: 'static'
|
||||
});
|
||||
|
||||
ContainerService.restartContainer();
|
||||
$timeout(function() {
|
||||
$scope.checkStatus();
|
||||
}, 2000);
|
||||
ContainerService.restartContainer(function() {
|
||||
$scope.checkStatus()
|
||||
});
|
||||
};
|
||||
|
||||
$scope.checkStatus = function() {
|
||||
|
|
Reference in a new issue