You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by kb...@apache.org on 2019/06/17 12:44:07 UTC

[atlas] branch branch-2.0 updated: ATLAS-3263 UI: Assign button (Create Term) should be blocked while an API call is in progress

This is an automated email from the ASF dual-hosted git repository.

kbhatt pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 620bc29  ATLAS-3263 UI: Assign button (Create Term) should be blocked while an API call is in progress
620bc29 is described below

commit 620bc29ccd861f59ef8650197ccb078a552a8c1a
Author: gutkaBinit <bi...@gmail.com>
AuthorDate: Fri Jun 7 15:20:56 2019 +0530

    ATLAS-3263 UI: Assign button (Create Term) should be blocked while an API call is in progress
    
    Signed-off-by: kevalbhatt <kb...@apache.org>
    (cherry picked from commit 3f67eb3cd73d445b5d35b29df697564ecf32a345)
---
 dashboardv2/public/js/views/entity/CreateEntityLayoutView.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dashboardv2/public/js/views/entity/CreateEntityLayoutView.js b/dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
index 2b2e4e0..230edd2 100644
--- a/dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
+++ b/dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
@@ -103,6 +103,7 @@ define(['require',
                 }).open();
                 this.modal.$el.find('button.ok').attr("disabled", true);
                 this.modal.on('ok', function(e) {
+                    that.modal.$el.find('button.ok, button.cancel').attr("disabled", true);
                     that.okButton();
                 });
                 this.modal.on('closeModal', function() {
@@ -782,6 +783,7 @@ define(['require',
                             that.hideLoader({
                                 editVisiblityOfEntitySelectionBox: true
                             });
+                            that.modal.$el.find('button.ok, button.cancel').attr("disabled", false);
                         }
                     });