1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 06:49:40 +02:00

Merge branch 'crosbymichael-master' into bharat-add-commit

Conflicts:
	app/components/container/container.html
This commit is contained in:
Kevan Ahlquist 2015-05-14 01:01:26 -05:00
commit c0ae0d8d3f
2 changed files with 15 additions and 0 deletions

View file

@ -101,6 +101,17 @@ function($scope, $routeParams, $location, Container, ContainerCommit, Messages,
});
};
$scope.restart = function() {
ViewSpinner.spin();
Container.restart({id: $routeParams.id}, function(d) {
update();
Messages.send("Container restarted", $routeParams.id);
}, function(e){
update();
Messages.error("Failure", "Container failed to restart." + e.data);
});
};
$scope.hasContent = function(data) {
return data !== null && data !== undefined;
};