Commit 8b372d8f authored by Roque's avatar Roque

erp5_web_monitoring: fix dispatch

parent f5c78a57
......@@ -29,12 +29,12 @@
return gadget.redirect(
{"command": "display",
"options": {
"url": options.url,
"username": options.username,
"password": options.password,
"page": "ojsm_opml_add"
}
});
"url": options.url,
"username": options.username,
"password": options.password,
"page": "ojsm_opml_add"
}
});
} else {
// URL queries from slapos master / panel rapid space:
// 'portal_type: "Instance Tree" AND title:"my-title"'
......@@ -54,6 +54,16 @@
});
}
});
} else if (options.url && options.username && options.password) {
return gadget.redirect(
{"command": "display",
"options": {
"url": options.url,
"username": options.username,
"password": options.password,
"page": "ojsm_opml_add"
}
});
}
return new RSVP.Queue()
.push(function () {
......
......@@ -246,7 +246,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1014.43824.52459.5376</string> </value>
<value> <string>1016.49507.50003.17561</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -266,7 +266,7 @@
</tuple>
<state>
<tuple>
<float>1708449003.36</float>
<float>1716393876.23</float>
<string>UTC</string>
</tuple>
</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