From 36e8a2dad657c71ed4b11f88b2e57562e9f3ee7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 17 Jul 2019 22:50:25 +0200 Subject: [PATCH] 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 --- src/screen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen.js b/src/screen.js index 0a05325a26..3f2826969d 100644 --- a/src/screen.js +++ b/src/screen.js @@ -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); }