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,10 +102,14 @@ ...@@ -102,10 +102,14 @@
// 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'),
if (class_list.contains('ui-icon-check')) { class_list;
class_list.remove('ui-icon-check'); if (button !== null) {
class_list.add('ui-icon-warning'); class_list = button.classList;
if (class_list.contains('ui-icon-check')) {
class_list.remove('ui-icon-check');
class_list.add('ui-icon-warning');
}
} }
} }
}) })
......
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