Repository: atlas
Updated Branches:
  refs/heads/master 25bae4fe3 -> 74dc605d4


ATLAS-2767: UI : "Create" button is not enabled after an error while createing 
a classification

Signed-off-by: Madhan Neethiraj <mad...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/74dc605d
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/74dc605d
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/74dc605d

Branch: refs/heads/master
Commit: 74dc605d453697c3830a726498eff3232dbba60f
Parents: 25bae4f
Author: Abhishek Kadam <abhishek.kada...@gmail.com>
Authored: Fri Jun 29 11:48:33 2018 +0530
Committer: Madhan Neethiraj <mad...@apache.org>
Committed: Mon Jul 2 15:36:09 2018 -0700

----------------------------------------------------------------------
 dashboardv2/public/js/views/tag/TagAttributeItemView.js | 4 ++++
 dashboardv2/public/js/views/tag/TagLayoutView.js        | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/74dc605d/dashboardv2/public/js/views/tag/TagAttributeItemView.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/views/tag/TagAttributeItemView.js 
b/dashboardv2/public/js/views/tag/TagAttributeItemView.js
index 3ce40e2..39ea292 100644
--- a/dashboardv2/public/js/views/tag/TagAttributeItemView.js
+++ b/dashboardv2/public/js/views/tag/TagAttributeItemView.js
@@ -65,9 +65,13 @@ define(['require',
                 });
             },
             onCloseButton: function() {
+                var tagName = 
this.parentView.$el.find('[data-id="tagName"]').val();
                 if (this.parentView.collection.models.length > 0) {
                     this.model.destroy();
                 }
+                if (this.parentView.collection.models.length == 0 && tagName 
!= "") {
+                    
this.parentView.$el.parent().next().find('button.ok').removeAttr("disabled");
+                }
             }
         });
 });
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/atlas/blob/74dc605d/dashboardv2/public/js/views/tag/TagLayoutView.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/views/tag/TagLayoutView.js 
b/dashboardv2/public/js/views/tag/TagLayoutView.js
index c7a5edb..7381e64 100644
--- a/dashboardv2/public/js/views/tag/TagLayoutView.js
+++ b/dashboardv2/public/js/views/tag/TagLayoutView.js
@@ -209,7 +209,7 @@ define(['require',
                 var tagParents = '',
                     tagLists = '';
 
-                if (this.collection && this.collection.fullCollection.length) {
+                if (this.collection && this.collection.fullCollection.length 
>= 0) {
                     var sortedCollection = this.collection.fullCollection;
                     this.tagTreeList = this.getTagTreeList({ collection: 
sortedCollection });
                     if (searchString) {

Reply via email to