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