Commit 1f5a3ff1 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Drop onLoop on status gadget

    It is mostly broken and nobody keeps the tab open waiting for update. if someone wants real time, it is better to use monitoring app
parent df2138b9
......@@ -221,22 +221,6 @@
return {};
})
.onLoop(function () {
var gadget = this;
if (typeof gadget.state.jio_key === 'string' &&
gadget.state.jio_key !== '') {
return gadget.jio_get(gadget.state.jio_key)
.push(function (result) {
var state_dict = result.news || {};
state_dict.jio_key = gadget.state.jio_key;
return gadget.changeState(state_dict);
});
}
throw new Error(
'jio_key dont contains a proper value: ' +
JSON.stringify(gadget.state.jio_key)
);
}, 300000)
.onStateChange(function () {
return getStatus(this, this.state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment