Dear customer
In this patch release there are several bug fixes and enhancements, some of them related to the Frontend SDK API.
For detailed information please see the relevant sections.
Best regards,
the edorasware team
Frontend scripting API
chain
The chain API now works better with promise resolutions, being able to catch if any step fails and providing extra information, including the number of the step that failed.
Also, if every step is successful, the resolution of the go() promise will have the result returned by the last step.
For more detailed information and examples, see documentation.
edoras.ui.navigate
avoidHistory option
There is now the ability to execute navigate methods that do not update the browser history.
The edoras.ui.navite.config method has been added to set a global configuration for further navigate method calls.
Also, all navigate methods have an extra parameter option to override the global configuration. To avoid updating the browser history, set the property avoidHistory to true in the options object.
e.g.
edoras.ui.navigate.to.case('CAS-x', 'browse', {avoidHistory:true})
edoras.ui.actions.save
The promise resolution/rejection has been fixed; now the promise is resolved once all actions are completed, including the redirection.
Moreover, it is possible to pass an object option parameter, that, if it contains the raw property set to true, will just execute the action without redirection, messages, or any additional action and then resolve the promise when the http request is finished.
e.g.
edoras.ui.actions.save({raw:true})