Commit 51110f6a authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Do not ongoing changes if no action is available

parent 58248225
...@@ -102,12 +102,16 @@ ...@@ -102,12 +102,16 @@
// Directly modify the previous calculated header // Directly modify the previous calculated header
// in order not to remove the submit input // in order not to remove the submit input
// and still receive 'submit' event // and still receive 'submit' event
var class_list = this.props.right_link.querySelector('button').classList; var button = this.props.right_link.querySelector('button'),
class_list;
if (button !== null) {
class_list = button.classList;
if (class_list.contains('ui-icon-check')) { if (class_list.contains('ui-icon-check')) {
class_list.remove('ui-icon-check'); class_list.remove('ui-icon-check');
class_list.add('ui-icon-warning'); class_list.add('ui-icon-warning');
} }
} }
}
}) })
.declareMethod('notifySubmitting', function () { .declareMethod('notifySubmitting', function () {
if (this.stats.submitted) { if (this.stats.submitted) {
......
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