Commit c24029bf by gutkaBinit Committed by kevalbhatt

ATLAS-3273 UI : Lineage Increase double click time

Signed-off-by: 's avatarkevalbhatt <kbhatt@apache.org>
parent cad4f87f
...@@ -774,11 +774,18 @@ define(['require', ...@@ -774,11 +774,18 @@ define(['require',
clearTimeout(waitForDoubleClick) clearTimeout(waitForDoubleClick)
waitForDoubleClick = null; waitForDoubleClick = null;
tooltip.hide(d); tooltip.hide(d);
Utils.setUrl({ if (that.guid == d) {
url: '#!/detailPage/' + d + '?tabActive=lineage', Utils.notifyInfo({
mergeBrowserUrl: false, html: true,
trigger: true content: "You are already on " + "<b>" + that.entityName + "</b> detail page."
}); });
} else {
Utils.setUrl({
url: '#!/detailPage/' + d + '?tabActive=lineage',
mergeBrowserUrl: false,
trigger: true
});
}
} else { } else {
var currentEvent = d3.event var currentEvent = d3.event
waitForDoubleClick = setTimeout(function() { waitForDoubleClick = setTimeout(function() {
...@@ -787,7 +794,7 @@ define(['require', ...@@ -787,7 +794,7 @@ define(['require',
$(el).find('circle').addClass('node-detail-highlight'); $(el).find('circle').addClass('node-detail-highlight');
that.updateRelationshipDetails({ guid: d }); that.updateRelationshipDetails({ guid: d });
waitForDoubleClick = null; waitForDoubleClick = null;
}, 150) }, 170)
} }
}); });
...@@ -1011,7 +1018,7 @@ define(['require', ...@@ -1011,7 +1018,7 @@ define(['require',
try { try {
var a = document.createElement("a"), var a = document.createElement("a"),
entityAttributes = that.entity && that.entity.attributes; entityAttributes = that.entity && that.entity.attributes;
a.download = ((entityAttributes && entityAttributes.qualifiedName) || "lineage_export") + ".png"; a.download = ((entityAttributes && (entityAttributes.qualifiedName || entityAttributes.name) || "lineage_export") + ".png");
document.body.appendChild(a); document.body.appendChild(a);
ctx.drawImage(img, 50, 50, canvas.width, canvas.height); ctx.drawImage(img, 50, 50, canvas.width, canvas.height);
canvas.toBlob(function(blob) { canvas.toBlob(function(blob) {
......
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