This is an automated email from the ASF dual-hosted git repository.

kbhatt pushed a commit to branch branch-0.8
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit 30b28e099b8cad03ef038b422639d5aca7454960
Author: gutkaBinit <[email protected]>
AuthorDate: Mon Jun 10 15:59:31 2019 +0530

    ATLAS-3273 UI : Lineage Increase double click time
    
    Signed-off-by: kevalbhatt <[email protected]>
    (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 881a059..9cad270 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)
                         }
                     });
 
@@ -996,7 +1003,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) {

Reply via email to