Wait reload is done before enable the button

We must return the promise of the reload as the button promise to avoid enable
back the button before the screen is fully reloaded.

issue8488
review249661002
This commit is contained in:
Cédric Krier committed 2019-07-17 22:50:25 +02:00
1 parent 77f6c00cad
commit 36e8a2dad6
1 file changed
+1 -1
+1 -1
View File
@@ -1777,7 +1777,7 @@
button: function(attributes) {
var ids;
var process_action = function(action) {
this.reload(ids, true).then(function() {
return this.reload(ids, true).then(function() {
if (typeof action == 'string') {
this.client_action(action);
}