1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-26 00:39:41 +02:00

Added restart to container list actions.

This commit is contained in:
Kevan Ahlquist 2015-02-09 23:10:05 -06:00
parent c7ebe9d881
commit 0d4274fdeb
4 changed files with 11 additions and 0 deletions

View file

@ -8,6 +8,7 @@
<ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop4">
<li><a tabindex="-1" href="" ng-click="startAction()">Start</a></li>
<li><a tabindex="-1" href="" ng-click="stopAction()">Stop</a></li>
<li><a tabindex="-1" href="" ng-click="restartAction()">Restart</a></li>
<li><a tabindex="-1" href="" ng-click="killAction()">Kill</a></li>
<li><a tabindex="-1" href="" ng-click="pauseAction()">Pause</a></li>
<li><a tabindex="-1" href="" ng-click="unpauseAction()">Unpause</a></li>

View file

@ -87,6 +87,10 @@ function($scope, Container, Settings, Messages, ViewSpinner) {
batch($scope.containers, Container.stop, "Stopped");
};
$scope.restartAction = function() {
batch($scope.containers, Container.restart, "Restarted");
};
$scope.killAction = function() {
batch($scope.containers, Container.kill, "Killed");
};