ATLAS-1759 : UI - Add checkbox to exclude/include deleted entities in schema table.
Signed-off-by: nixonrodrigues <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/034f2928 Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/034f2928 Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/034f2928 Branch: refs/heads/0.8-incubating Commit: 034f29283c45925df3e6f2516cacdefd86d1fc63 Parents: 08d2d26 Author: Kalyani <[email protected]> Authored: Tue May 16 15:18:51 2017 +0530 Committer: nixonrodrigues <[email protected]> Committed: Tue May 16 18:41:26 2017 +0530 ---------------------------------------------------------------------- dashboardv2/public/js/views/schema/SchemaLayoutView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/034f2928/dashboardv2/public/js/views/schema/SchemaLayoutView.js ---------------------------------------------------------------------- diff --git a/dashboardv2/public/js/views/schema/SchemaLayoutView.js b/dashboardv2/public/js/views/schema/SchemaLayoutView.js index 60c2a6b..d069c44 100644 --- a/dashboardv2/public/js/views/schema/SchemaLayoutView.js +++ b/dashboardv2/public/js/views/schema/SchemaLayoutView.js @@ -203,7 +203,7 @@ define(['require', this.$('.fontLoader').hide(); this.$('.tableOverlay').hide(); }, - renderTableLayoutView: function(deleteEnity) { + renderTableLayoutView: function() { var that = this; require(['utils/TableLayout'], function(TableLayout) { var columnCollection = Backgrid.Columns.extend({ @@ -227,7 +227,7 @@ define(['require', // return this; // } }); - var columns = new columnCollection(that.getSchemaTableColumns(deleteEnity)); + var columns = new columnCollection(that.getSchemaTableColumns()); //columns.setPositions().sort(); that.RSchemaTableLayoutView.show(new TableLayout(_.extend({}, that.commonTableOptions, { columns: columns @@ -270,7 +270,7 @@ define(['require', var value = model.get('attributes')[key]; if (key === "name" && model.get('guid')) { var nameHtml = '<a href="#!/detailPage/' + model.get('guid') + '">' + value + '</a>'; - if (model.get('status') && Enums.entityStateReadOnly[model.get('status')] && deleteEnity) { + if (model.get('status') && Enums.entityStateReadOnly[model.get('status')]) { nameHtml += '<button type="button" title="Deleted" class="btn btn-atlasAction btn-atlas deleteBtn"><i class="fa fa-trash"></i></button>'; return '<div class="readOnly readOnlyLink">' + nameHtml + '</div>'; } else {
