Commit eaad45bd by pratik pandey Committed by kevalbhatt

ATLAS-2208 : Include historical entities in Schema tab checked by default for DELETED tables

Signed-off-by: 's avatarkevalbhatt <kbhatt@apache.org>
parent 81296b5e
...@@ -68,9 +68,14 @@ ...@@ -68,9 +68,14 @@
.with-nav-tabs { .with-nav-tabs {
.tab-content { .tab-content {
>.tab-pane.active { >.tab-pane {
padding: 20px 10px 0px 10px; &>div {
min-height: 50px; position: relative;
}
&.active {
padding: 20px 10px 0px 10px;
min-height: 50px;
}
} }
} }
} }
\ No newline at end of file
...@@ -69,10 +69,6 @@ $color_celeste_approx: #1D1F2B; ...@@ -69,10 +69,6 @@ $color_celeste_approx: #1D1F2B;
line-height: 40px; line-height: 40px;
} }
.btnAssign {
margin-bottom: 15px;
}
.srchType { .srchType {
margin: 5px 0px; margin: 5px 0px;
.srchTitle { .srchTitle {
......
...@@ -371,4 +371,9 @@ fieldset.fieldset-child-pd>div { ...@@ -371,4 +371,9 @@ fieldset.fieldset-child-pd>div {
.select2-selection--multiple { .select2-selection--multiple {
border-color: $color_apple_blossom_approx; border-color: $color_apple_blossom_approx;
} }
}
.table-action-btn {
position: absolute;
right: 0px;
} }
\ No newline at end of file
...@@ -16,14 +16,16 @@ ...@@ -16,14 +16,16 @@
--> -->
<div> <div>
<div class="tableOverlay"></div> <div class="tableOverlay"></div>
<div style="margin-left: 20px" data-id="checkDeletedEntity"> <div class="inline-content-fr table-action-btn">
<label class="checkbox"> <div class="inline" data-id="checkDeletedEntity">
<input type="checkbox" class="input" name="queryType" value="text" name="check" value="1" />Include historical entities</label> <label class="checkbox-inline btn">
</div> <input type="checkbox" class="input" name="queryType" value="text" name="check" value="1" />Show historical entities</label>
<div class="clearfix"> </div>
<a href="javascript:void(0)" class="inputAssignTag multiSelectTerm btnAssign" style="display:none" data-id="addTerm"><i class="fa fa-plus"></i></a> <div class="clearfix inline">
<a href="javascript:void(0)" class="inputAssignTag multiSelectTag assignTag btnAssign" style="display:none" data-id="addAssignTag"><i class="fa fa-plus"></i> Assign Tag</a> <a href="javascript:void(0)" class="inputAssignTag multiSelectTerm btn btn-action btn-sm" style="display:none" data-id="addTerm"><i class="fa fa-plus"></i> Assign Term</a>
<a href="javascript:void(0)" class="inputAssignTag multiSelectTag assignTag btn btn-action btn-sm" style="display:none" data-id="addAssignTag"><i class="fa fa-plus"></i> Assign Tag</a>
</div>
</div> </div>
<div id="r_schemaTableLayoutView"> <div id="r_schemaTableLayoutView">
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -73,6 +73,8 @@ define(['require', 'utils/Utils', 'marionette', 'backgrid', 'asBreadcrumbs', 'jq ...@@ -73,6 +73,8 @@ define(['require', 'utils/Utils', 'marionette', 'backgrid', 'asBreadcrumbs', 'jq
var isPopOverEl = getPopoverEl(e) var isPopOverEl = getPopoverEl(e)
if (!isPopOverEl) { if (!isPopOverEl) {
$('.popover').popover('hide'); $('.popover').popover('hide');
} else if (isPopOverEl.$tip) {
$('.popover').not(isPopOverEl.$tip).popover('hide');
} }
} }
}); });
......
...@@ -106,14 +106,14 @@ define(['require', ...@@ -106,14 +106,14 @@ define(['require',
this.bradCrumbList = []; this.bradCrumbList = [];
}, },
bindEvents: function() { bindEvents: function() {
var that = this;
this.listenTo(this.schemaCollection, 'backgrid:selected', function(model, checked) { this.listenTo(this.schemaCollection, 'backgrid:selected', function(model, checked) {
this.arr = [];
if (checked === true) { if (checked === true) {
model.set("isEnable", true); model.set("isEnable", true);
} else { } else {
model.set("isEnable", false); model.set("isEnable", false);
} }
this.arr = [];
var that = this;
this.schemaCollection.find(function(item) { this.schemaCollection.find(function(item) {
var obj = item.toJSON(); var obj = item.toJSON();
if (item.get('isEnable')) { if (item.get('isEnable')) {
...@@ -167,7 +167,7 @@ define(['require', ...@@ -167,7 +167,7 @@ define(['require',
}); });
if (this.schemaCollection.length === 0 && this.deleteObj.length) { if (this.schemaCollection.length === 0 && this.deleteObj.length) {
this.ui.checkDeletedEntity.find("input").prop('checked', true); this.ui.checkDeletedEntity.find("input").prop('checked', true);
this.schemaCollection.fullCollection.reset(this.deleteObj, { silent: true }); this.schemaCollection.fullCollection.reset(this.deleteObj);
} }
if (this.activeObj.length === 0 && this.deleteObj.length === 0) { if (this.activeObj.length === 0 && this.deleteObj.length === 0) {
this.ui.checkDeletedEntity.hide(); this.ui.checkDeletedEntity.hide();
...@@ -240,7 +240,7 @@ define(['require', ...@@ -240,7 +240,7 @@ define(['require',
if (key === "name" && model.get('guid')) { if (key === "name" && model.get('guid')) {
var nameHtml = '<a href="#!/detailPage/' + model.get('guid') + '">' + value + '</a>'; var nameHtml = '<a href="#!/detailPage/' + model.get('guid') + '">' + value + '</a>';
if (model.get('status') && Enums.entityStateReadOnly[model.get('status')]) { 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>'; 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>'; return '<div class="readOnly readOnlyLink">' + nameHtml + '</div>';
} else { } else {
return nameHtml; return nameHtml;
...@@ -304,17 +304,19 @@ define(['require', ...@@ -304,17 +304,19 @@ define(['require',
e.stopPropagation(); e.stopPropagation();
} }
var guid = "", var guid = "",
that = this; that = this,
var multiSelectTag = $(e.currentTarget).hasClass('assignTag'); isTagMultiSelect = $(e.currentTarget).hasClass('multiSelectTag'),
if (multiSelectTag) { isTermMultiSelect = $(e.currentTarget).hasClass('multiSelectTerm'),
if (this.arr && this.arr.length && multiSelectTag) { isTagButton = $(e.currentTarget).hasClass('assignTag');
if (isTagButton) {
if (isTagMultiSelect && this.arr && this.arr.length) {
that.addTagModalView(guid, this.arr); that.addTagModalView(guid, this.arr);
} else { } else {
guid = that.$(e.currentTarget).data("guid"); guid = that.$(e.currentTarget).data("guid");
that.addTagModalView(guid); that.addTagModalView(guid);
} }
} else { } else {
if (this.arr && this.arr.length) { if (isTermMultiSelect && this.arr && this.arr.length) {
that.addTermModalView(guid, this.arr); that.addTermModalView(guid, this.arr);
} else { } else {
guid = that.$(e.currentTarget).data("guid"); guid = that.$(e.currentTarget).data("guid");
......
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