diff --git a/app/components/container/container.html b/app/components/container/container.html index f3f19fa93..f640b0cd6 100644 --- a/app/components/container/container.html +++ b/app/components/container/container.html @@ -21,7 +21,10 @@
- +
diff --git a/app/components/container/containerController.js b/app/components/container/containerController.js index c75f6894a..767028df7 100644 --- a/app/components/container/containerController.js +++ b/app/components/container/containerController.js @@ -8,6 +8,7 @@ function ($q, $scope, $state, $transition$, $filter, Container, ContainerCommit, Registry: '' }; $scope.state = { + recreateContainerInProgress: false, joinNetworkInProgress: false, leaveNetworkInProgress: false, pagination_count: Pagination.getPaginationCount('container_networks') @@ -207,6 +208,7 @@ function ($q, $scope, $state, $transition$, $filter, Container, ContainerCommit, function recreateContainer(pullImage) { var container = $scope.container; var config = ContainerHelper.configFromContainer(container.Model); + $scope.state.recreateContainerInProgress = true; ContainerService.remove(container, true) .then(function success() { return RegistryService.retrieveRegistryFromRepository(container.Config.Image); @@ -239,6 +241,7 @@ function ($q, $scope, $state, $transition$, $filter, Container, ContainerCommit, }) .catch(function error(err) { Notifications.error('Failure', err, 'Unable to re-create container'); + $scope.state.recreateContainerInProgress = false; }); }