You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by kb...@apache.org on 2019/06/10 10:53:35 UTC
[atlas] 01/02: ATLAS-3273 UI : Lineage Increase double click time
This is an automated email from the ASF dual-hosted git repository.
kbhatt pushed a commit to branch branch-1.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
commit a1343cf2ff4a990326f9f6f18457f1999dc7b85a
Author: gutkaBinit <bi...@gmail.com>
AuthorDate: Mon Jun 10 15:59:31 2019 +0530
ATLAS-3273 UI : Lineage Increase double click time
Signed-off-by: kevalbhatt <kb...@apache.org>
(cherry picked from commit c24029bfba137503bbe19c0a3d79446709ceecb8)
---
.../public/js/views/graph/LineageLayoutView.js | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/dashboardv2/public/js/views/graph/LineageLayoutView.js b/dashboardv2/public/js/views/graph/LineageLayoutView.js
index 34f0b39..85293d7 100644
--- a/dashboardv2/public/js/views/graph/LineageLayoutView.js
+++ b/dashboardv2/public/js/views/graph/LineageLayoutView.js
@@ -774,11 +774,18 @@ define(['require',
clearTimeout(waitForDoubleClick)
waitForDoubleClick = null;
tooltip.hide(d);
- Utils.setUrl({
- url: '#!/detailPage/' + d + '?tabActive=lineage',
- mergeBrowserUrl: false,
- trigger: true
- });
+ if (that.guid == d) {
+ Utils.notifyInfo({
+ html: 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 {
var currentEvent = d3.event
waitForDoubleClick = setTimeout(function() {
@@ -787,7 +794,7 @@ define(['require',
$(el).find('circle').addClass('node-detail-highlight');
that.updateRelationshipDetails({ guid: d });
waitForDoubleClick = null;
- }, 150)
+ }, 170)
}
});
@@ -1011,7 +1018,7 @@ define(['require',
try {
var a = document.createElement("a"),
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);
ctx.drawImage(img, 50, 50, canvas.width, canvas.height);
canvas.toBlob(function(blob) {