Commit 7f890e75 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Reset launcher state in case of error

parent 6f66bae9
......@@ -542,6 +542,8 @@
gadget.props.content_element.innerHTML = "<br/><br/><br/><pre></pre>";
gadget.props.content_element.querySelector('pre').textContent =
"Error: " + gadget.state.error_text;
// reset gadget state
gadget.state = {};
// XXX Notify error
});
}
......@@ -631,7 +633,7 @@
}, function (error) {
return decreaseLoadingCounter(gadget)
.push(function () {
throw error;
return displayError(gadget, error);
});
});
})
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>965.3167.36247.3959</string> </value>
<value> <string>966.11429.50874.16537</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1519038006.66</float>
<float>1521043626.08</float>
<string>UTC</string>
</tuple>
</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