Repository: atlas
Updated Branches:
  refs/heads/branch-1.0 72cae9eda -> 808da77b5


ATLAS-2754: UI - Atlas front end fail to show the input and output entity

Signed-off-by: nixonrodrigues <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/808da77b
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/808da77b
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/808da77b

Branch: refs/heads/branch-1.0
Commit: 808da77b56777bbd404e08b0afbe517cc6aaa3fd
Parents: 72cae9e
Author: Abhishek Kadam <[email protected]>
Authored: Tue Jun 12 18:43:07 2018 +0530
Committer: nixonrodrigues <[email protected]>
Committed: Wed Jun 13 16:33:06 2018 +0530

----------------------------------------------------------------------
 dashboardv2/public/js/utils/CommonViewFunction.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/808da77b/dashboardv2/public/js/utils/CommonViewFunction.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/utils/CommonViewFunction.js 
b/dashboardv2/public/js/utils/CommonViewFunction.js
index 3d39eb8..241b812 100644
--- a/dashboardv2/public/js/utils/CommonViewFunction.js
+++ b/dashboardv2/public/js/utils/CommonViewFunction.js
@@ -176,7 +176,14 @@ define(['require', 'utils/Utils', 'modules/Modal', 
'utils/Messages', 'utils/Enum
                                 fetchInputOutputValue(fetchId);
                                 tempLink += '<div data-id="' + fetchId + 
'"><div class="value-loader"></div></div>';
                             } else {
-                                tempLink += '<div data-id="' + rAttrValue.guid 
+ '"><a href="#!/detailPage/' + rAttrValue.guid + '">' + 
Utils.getName(rAttrValue) + '</a></div>';
+                                if (_.isArray(rAttrValue) && 
rAttrValue.length) {
+                                    var attrVal = _.find(rAttrValue, 
inputOutputField);
+                                    if (attrVal) {
+                                        tempLink += '<div data-id="' + 
attrVal.guid + '"><a href="#!/detailPage/' + attrVal.guid + '">' + 
Utils.getName(attrVal) + '</a></div>';
+                                    }
+                                } else {
+                                    tempLink += '<div data-id="' + 
rAttrValue.guid + '"><a href="#!/detailPage/' + rAttrValue.guid + '">' + 
Utils.getName(rAttrValue) + '</a></div>';
+                                }
                             }
                         } else {
                             tempLink += '<a href="#!/detailPage/' + id + '">' 
+ name + '</a>'

Reply via email to