Commit 19ebed0c authored by Jérome Perrin's avatar Jérome Perrin

GUI: update static version

parent d7099932
...@@ -104,15 +104,23 @@ ...@@ -104,15 +104,23 @@
}); });
} }
function getNextStepLink(gadget, portal_type, options) { function getNextStepLink(gadget, portal_type, options) {
// We define `next_step_action` in the json
if (options.action_definition.next_step_action !== undefined) {
var forward_kw = {
action: options.action_definition.next_step_action,
id: options.id
};
return gadget.aq_pleasePublishMyState(forward_kw);
}
// in the first POC, we had this hardcoded
if (options.action === "view_machine_shift_spreadsheet") { if (options.action === "view_machine_shift_spreadsheet") {
var forward_kw = { var forward_kw = {
action: "view_run_simulation", action: "view_run_simulation",
id: options.id id: options.id
}; };
return gadget.aq_pleasePublishMyState(forward_kw); return gadget.aq_pleasePublishMyState(forward_kw);
} else {
return false;
} }
return false;
} }
function getTitle(gadget, portal_type, options) { function getTitle(gadget, portal_type, options) {
var title; var title;
......
CACHE MANIFEST CACHE MANIFEST
# This manifest was generated by grunt-manifest HTML5 Cache Manifest Generator # This manifest was generated by grunt-manifest HTML5 Cache Manifest Generator
# Time: Wed Sep 16 2015 18:23:50 GMT+0200 (CEST) # Time: Fri Oct 14 2016 11:33:31 GMT+0200 (CEST)
CACHE: CACHE:
daff/index.html daff/index.html
......
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