Commit 462b148c authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Fix start/stop hosting subscription ui.

parent e85fc201
...@@ -50,10 +50,12 @@ ...@@ -50,10 +50,12 @@
return RSVP.Queue() return RSVP.Queue()
.push(function () { .push(function () {
return RSVP.all([ return RSVP.all([
gadget.getDeclaredGadget('form_view') gadget.getDeclaredGadget('form_view'),
gadget.jio_get(options.jio_key)
]); ]);
}) })
.push(function (result) { .push(function (result) {
options.doc = result[1];
return result[0].render({ return result[0].render({
erp5_document: { erp5_document: {
"_embedded": {"_view": { "_embedded": {"_view": {
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>963.9441.34399.44800</string> </value> <value> <string>966.29726.26723.5427</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1522141344.42</float> <float>1522752587.64</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -50,10 +50,12 @@ ...@@ -50,10 +50,12 @@
return RSVP.Queue() return RSVP.Queue()
.push(function () { .push(function () {
return RSVP.all([ return RSVP.all([
gadget.getDeclaredGadget('form_view') gadget.getDeclaredGadget('form_view'),
gadget.jio_get(options.jio_key)
]); ]);
}) })
.push(function (result) { .push(function (result) {
options.doc = result[1];
return result[0].render({ return result[0].render({
erp5_document: { erp5_document: {
"_embedded": {"_view": { "_embedded": {"_view": {
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>963.9441.24521.7150</string> </value> <value> <string>966.29726.36584.7355</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1522141353.45</float> <float>1522752577.81</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </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