Fix unblock/restart all

This commit is contained in:
Ruben van de Ven 2019-11-13 15:26:51 +01:00
parent b3f3bc9ca2
commit 63d23a4c8a

View file

@ -91,19 +91,17 @@ class Panopticon {
},
unblockAll: function(){
for(let hv of panopticon.hugveys.hugveys) {
console.log(hv, this);
if(hv.status == 'blocked') {
hv.status = "loading";
return panopticon.unblock(hv.id)
panopticon.unblock(hv.id)
}
}
},
startAll: function(){
for(let hv of panopticon.hugveys.hugveys) {
console.log(hv, this);
if(hv.status == 'available') {
hv.status = "loading";
return panopticon.restart(hv.id)
panopticon.restart(hv.id)
}
}
},