Commit 34e06947 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: On intent gadget, Display a small message before redirect

It is more confortable to the user knows that a redirect will occur.
parent 30dd982c
......@@ -17,6 +17,7 @@
</head>
<body>
<p> Wait, you are going to be redirected automatically. </p>
<form class="save_form ui-body-c" novalidate>
<button type="submit" class="ui-btn ui-btn-b ui-btn-inline
ui-icon-edit ui-btn-icon-right ui-screen-hidden"></button>
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -234,7 +235,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>965.20811.37776.57275</string> </value>
<value> <string>974.62049.17150.785</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +253,7 @@
</tuple>
<state>
<tuple>
<float>1517933516.31</float>
<float>1580504827.08</float>
<string>UTC</string>
</tuple>
</state>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -72,7 +72,7 @@
if (options.intent !== "request") {
throw new Error("Intent not supported");
}
return RSVP.Queue()
return new RSVP.Queue()
.push(function () {
return gadget.updateHeader({
page_title: "Requesting a service..."
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -273,7 +274,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>965.45338.57463.57856</string> </value>
<value> <string>976.35912.43901.24490</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -291,7 +292,7 @@
</tuple>
<state>
<tuple>
<float>1521716721.0</float>
<float>1562347851.97</float>
<string>UTC</string>
</tuple>
</state>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
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