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

nixon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit 619a0a9dbbff626508f3185dfa3ec4357a078d30
Author: prasad pawar <prasad.pa...@freestoneinfotech.com>
AuthorDate: Wed Mar 17 12:35:58 2021 +0530

    ATLAS-4201:UI: Add attributes modal api hits when no attributes are added 
on Classification detail page.
    
    Signed-off-by: nixonrodrigues <ni...@apache.org>
---
 dashboardv2/public/js/views/tag/TagAttributeItemView.js | 4 ++--
 dashboardv3/public/js/views/tag/TagAttributeItemView.js | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dashboardv2/public/js/views/tag/TagAttributeItemView.js 
b/dashboardv2/public/js/views/tag/TagAttributeItemView.js
index 39ea292..0016bbe 100644
--- a/dashboardv2/public/js/views/tag/TagAttributeItemView.js
+++ b/dashboardv2/public/js/views/tag/TagAttributeItemView.js
@@ -69,8 +69,8 @@ define(['require',
                 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");
+                if (this.parentView.$el.find('input').length === 1) {
+                    $(this.ui.close).hide();
                 }
             }
         });
diff --git a/dashboardv3/public/js/views/tag/TagAttributeItemView.js 
b/dashboardv3/public/js/views/tag/TagAttributeItemView.js
index 39ea292..0016bbe 100644
--- a/dashboardv3/public/js/views/tag/TagAttributeItemView.js
+++ b/dashboardv3/public/js/views/tag/TagAttributeItemView.js
@@ -69,8 +69,8 @@ define(['require',
                 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");
+                if (this.parentView.$el.find('input').length === 1) {
+                    $(this.ui.close).hide();
                 }
             }
         });

Reply via email to