changeset 488765497ba3 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=488765497ba3
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
diffstat:

 src/screen.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r fe4e608239f2 -r 488765497ba3 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
@@ -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);
                     }

Reply via email to