changeset d6f05bc2a8c0 in sao:4.8
details: https://hg.tryton.org/sao?cmd=changeset;node=d6f05bc2a8c0
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 0bb1715347e2 -r d6f05bc2a8c0 src/screen.js
--- a/src/screen.js     Mon Jul 08 21:26:20 2019 +0200
+++ b/src/screen.js     Wed Jul 17 22:50:25 2019 +0200
@@ -1634,7 +1634,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);
                     }

Reply via email to