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(){ 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)
} }
} }
}, },