Fix unblock/restart all
This commit is contained in:
parent
b3f3bc9ca2
commit
63d23a4c8a
1 changed files with 2 additions and 4 deletions
|
@ -91,19 +91,17 @@ class Panopticon {
|
||||||
},
|
},
|
||||||
unblockAll: function(){
|
unblockAll: function(){
|
||||||
for(let hv of panopticon.hugveys.hugveys) {
|
for(let hv of panopticon.hugveys.hugveys) {
|
||||||
console.log(hv, this);
|
|
||||||
if(hv.status == 'blocked') {
|
if(hv.status == 'blocked') {
|
||||||
hv.status = "loading";
|
hv.status = "loading";
|
||||||
return panopticon.unblock(hv.id)
|
panopticon.unblock(hv.id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
startAll: function(){
|
startAll: function(){
|
||||||
for(let hv of panopticon.hugveys.hugveys) {
|
for(let hv of panopticon.hugveys.hugveys) {
|
||||||
console.log(hv, this);
|
|
||||||
if(hv.status == 'available') {
|
if(hv.status == 'available') {
|
||||||
hv.status = "loading";
|
hv.status = "loading";
|
||||||
return panopticon.restart(hv.id)
|
panopticon.restart(hv.id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue