Repository: atlas Updated Branches: refs/heads/branch-1.0 877cb55bf -> 3d69ad2f4
ATLAS-2767: UI : "Create" button is not enabled after an error while createing a classification Signed-off-by: Madhan Neethiraj <mad...@apache.org> (cherry picked from commit 74dc605d453697c3830a726498eff3232dbba60f) Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/3d69ad2f Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/3d69ad2f Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/3d69ad2f Branch: refs/heads/branch-1.0 Commit: 3d69ad2f49a16a9748752019d077bb66be8c968f Parents: 877cb55 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:39:43 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/3d69ad2f/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/3d69ad2f/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) {