ATLAS-4201:UI: Add attributes modal api hits when no attributes are added on Classification detail page.

Signed-off-by: nixonrodrigues <nixon@apache.org>
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 @@
                 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 @@
                 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();
                 }
             }
         });