Commit 3f67eb3c by gutkaBinit Committed by kevalbhatt

ATLAS-3263 UI: Assign button (Create Term) should be blocked while an API call is in progress

Signed-off-by: 's avatarkevalbhatt <kbhatt@apache.org>
parent 66c2964e
...@@ -103,6 +103,7 @@ define(['require', ...@@ -103,6 +103,7 @@ define(['require',
}).open(); }).open();
this.modal.$el.find('button.ok').attr("disabled", true); this.modal.$el.find('button.ok').attr("disabled", true);
this.modal.on('ok', function(e) { this.modal.on('ok', function(e) {
that.modal.$el.find('button.ok, button.cancel').attr("disabled", true);
that.okButton(); that.okButton();
}); });
this.modal.on('closeModal', function() { this.modal.on('closeModal', function() {
...@@ -782,6 +783,7 @@ define(['require', ...@@ -782,6 +783,7 @@ define(['require',
that.hideLoader({ that.hideLoader({
editVisiblityOfEntitySelectionBox: true editVisiblityOfEntitySelectionBox: true
}); });
that.modal.$el.find('button.ok, button.cancel').attr("disabled", false);
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment