mirror of https://github.com/portainer/portainer
nicer solution for checking the action
parent
dabb1926a5
commit
8abb445bd4
|
@ -26,7 +26,7 @@ function($scope, Container, Settings, Messages, ViewSpinner) {
|
||||||
};
|
};
|
||||||
angular.forEach(items, function(c) {
|
angular.forEach(items, function(c) {
|
||||||
if (c.Checked) {
|
if (c.Checked) {
|
||||||
if(msg === "Started"){
|
if(action === Container.start){
|
||||||
Container.get({id: c.Id}, function(d) {
|
Container.get({id: c.Id}, function(d) {
|
||||||
c = d;
|
c = d;
|
||||||
counter = counter + 1;
|
counter = counter + 1;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/*! dockerui - v0.6.0 - 2015-02-08
|
/*! dockerui - v0.6.0 - 2015-02-09
|
||||||
* https://github.com/crosbymichael/dockerui
|
* https://github.com/crosbymichael/dockerui
|
||||||
* Copyright (c) 2015 Michael Crosby & Kevan Ahlquist;
|
* Copyright (c) 2015 Michael Crosby & Kevan Ahlquist;
|
||||||
* Licensed MIT
|
* Licensed MIT
|
||||||
|
@ -211,7 +211,7 @@ function($scope, Container, Settings, Messages, ViewSpinner) {
|
||||||
};
|
};
|
||||||
angular.forEach(items, function(c) {
|
angular.forEach(items, function(c) {
|
||||||
if (c.Checked) {
|
if (c.Checked) {
|
||||||
if(msg === "Started"){
|
if(action === Container.start){
|
||||||
Container.get({id: c.Id}, function(d) {
|
Container.get({id: c.Id}, function(d) {
|
||||||
c = d;
|
c = d;
|
||||||
counter = counter + 1;
|
counter = counter + 1;
|
||||||
|
|
Loading…
Reference in New Issue