changeset ec5d25a3d95b in sao:5.2
details: https://hg.tryton.org/sao?cmd=changeset;node=ec5d25a3d95b
description:
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
(grafted from 488765497ba3e5fcac765d7e85b948f87090a037)
diffstat:
src/screen.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r fc4903828b1e -r ec5d25a3d95b src/screen.js
--- a/src/screen.js Wed Jul 17 22:48:59 2019 +0200
+++ b/src/screen.js Wed Jul 17 22:50:25 2019 +0200
@@ -1782,7 +1782,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);
}