Commit a3f718e5 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Fix minor navigation bugs on "transfer" gadgets

parent 8ac14ee4
...@@ -207,10 +207,11 @@ ...@@ -207,10 +207,11 @@
}); });
}) })
.push(function () { .push(function () {
return gadget.getSetting('document_title'); return gadget.getUrlFor({command: 'history_previous'});
}) })
.push(function (document_title) { .push(function (selection_url) {
return gadget.updateHeader({ return gadget.updateHeader({
selection_url: selection_url,
page_title: "Transfer Computer", page_title: "Transfer Computer",
submit_action: true submit_action: true
}); });
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>964.6860.30895.39987</string> </value> <value> <string>972.32024.53732.34406</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>1513173681.06</float> <float>1562639281.01</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -169,11 +169,12 @@ ...@@ -169,11 +169,12 @@
}); });
}) })
.push(function () { .push(function () {
return gadget.getSetting('document_title'); return gadget.getUrlFor({command: 'history_previous'});
}) })
.push(function (document_title) { .push(function (selection_url) {
return gadget.updateHeader({ return gadget.updateHeader({
page_title: "Transfer Computer Network", page_title: "Transfer Computer Network",
selection_url: selection_url,
submit_action: true submit_action: true
}); });
}); });
......
...@@ -271,7 +271,7 @@ ...@@ -271,7 +271,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>976.54411.39421.3123</string> </value> <value> <string>976.62093.51594.26214</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1562166505.65</float> <float>1562629628.15</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
url + doc.relative_url + "/HostingSubscription_createMovement", doc); url + doc.relative_url + "/HostingSubscription_createMovement", doc);
}) })
.push(function () { .push(function () {
return gadget.notifySubmitted({message: 'Computer is transferred.', status: 'success'}) return gadget.notifySubmitted({message: 'Service is transferred.', status: 'success'})
.push(function () { .push(function () {
// Workaround, find a way to open document without break gadget. // Workaround, find a way to open document without break gadget.
return gadget.redirect({"command": "change", return gadget.redirect({"command": "change",
...@@ -186,11 +186,12 @@ ...@@ -186,11 +186,12 @@
}); });
}) })
.push(function () { .push(function () {
return gadget.getSetting('document_title'); return gadget.getUrlFor({command: 'history_previous'});
}) })
.push(function (document_title) { .push(function (selection_url) {
return gadget.updateHeader({ return gadget.updateHeader({
page_title: "Transfer Computer", selection_url: selection_url,
page_title: "Transfer Service",
submit_action: true submit_action: true
}); });
}); });
......
...@@ -271,7 +271,7 @@ ...@@ -271,7 +271,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>976.53584.51820.61286</string> </value> <value> <string>976.53587.16960.43827</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1562116965.21</float> <float>1562640396.08</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
CACHE MANIFEST\n CACHE MANIFEST\n
# generated on Fri, 24 Jun 2019 01:00:00 GMT+0200\n # generated on Fri, 9 JuL 2019 10:00:00 GMT+0200\n
CACHE:\n CACHE:\n
favicon.ico\n favicon.ico\n
font-awesome/font-awesome-webfont.eot?v=4.6.3\n font-awesome/font-awesome-webfont.eot?v=4.6.3\n
...@@ -579,7 +579,7 @@ NETWORK:\n ...@@ -579,7 +579,7 @@ NETWORK:\n
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>976.54528.36329.11827</string> </value> <value> <string>976.62292.13005.43588</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -597,7 +597,7 @@ NETWORK:\n ...@@ -597,7 +597,7 @@ NETWORK:\n
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1562426386.8</float> <float>1562640407.16</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