Commit 71d9c6f3 by kevalbhatt Committed by nixonrodrigues

ATLAS-3410 : UI - Term assigned to historical entity is not visible in Details page.

parent 660b91af
...@@ -418,9 +418,9 @@ define(['require', ...@@ -418,9 +418,9 @@ define(['require',
var that = this, var that = this,
termData = ""; termData = "";
_.each(data, function(val) { _.each(data, function(val) {
if (val.relationshipStatus == "ACTIVE") { // if (val.relationshipStatus == "ACTIVE") {
termData += '<span class="btn btn-action btn-sm btn-icon btn-blue" title=' + _.escape(val.displayText) + ' data-id="termClick"><span>' + _.escape(val.displayText) + '</span><i class="fa fa-close" data-id="deleteTerm" data-guid="' + val.guid + '" data-type="term" title="Remove Term"></i></span>'; termData += '<span class="btn btn-action btn-sm btn-icon btn-blue" data-id="termClick"><span title=' + _.escape(val.displayText) + '>' + _.escape(val.displayText) + '</span><i class="' + (val.relationshipStatus == "ACTIVE" ? 'fa fa-close' : "") + '" data-id="deleteTerm" data-guid="' + val.guid + '" data-type="term" title="Remove Term"></i></span>';
} // }
}); });
this.ui.termList.find("span.btn").remove(); this.ui.termList.find("span.btn").remove();
this.ui.termList.prepend(termData); this.ui.termList.prepend(termData);
......
...@@ -475,7 +475,7 @@ define(['require', ...@@ -475,7 +475,7 @@ define(['require',
that.ui.activePage.attr('title', "Page " + that.activePage); that.ui.activePage.attr('title', "Page " + that.activePage);
that.ui.activePage.text(that.activePage); that.ui.activePage.text(that.activePage);
that.renderTableLayoutView(); that.renderTableLayoutView();
if(dataLength>0){ if (dataLength > 0) {
that.$('.searchTable').removeClass('noData') that.$('.searchTable').removeClass('noData')
} }
if (Utils.getUrlState.isSearchTab() && value && !value.profileDBView) { if (Utils.getUrlState.isSearchTab() && value && !value.profileDBView) {
...@@ -676,7 +676,7 @@ define(['require', ...@@ -676,7 +676,7 @@ define(['require',
} }
if (obj.status && Enums.entityStateReadOnly[obj.status]) { if (obj.status && Enums.entityStateReadOnly[obj.status]) {
nameHtml += '<button type="button" title="Deleted" class="btn btn-action btn-md deleteBtn"><i class="fa fa-trash"></i></button>'; nameHtml += '<button type="button" title="Deleted" class="btn btn-action btn-md deleteBtn"><i class="fa fa-trash"></i></button>';
return '<div class="readOnly readOnlyLink">' + nameHtml + '</div>'; nameHtml = '<div class="readOnly readOnlyLink">' + nameHtml + '</div>';
} }
return nameHtml; return nameHtml;
} }
......
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