Skip to content

Commit 8ef6786

Browse files
committed
add guide link
1 parent dc935d2 commit 8ef6786

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

‎web/src/main/webapp/features/distributedCallFlow/distributed-call-flow.directive.js‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
* @name distributedCallFlowDirective
88
* @class
99
*/
10-
pinpointApp.directive('distributedCallFlowDirective', [ '$filter', '$timeout', 'CommonAjaxService',
11-
function ($filter, $timeout, commonAjaxService) {
10+
pinpointApp.directive( "distributedCallFlowDirective", [ "$filter", "$timeout", "CommonAjaxService", "globalConfig",
11+
function ( $filter, $timeout, CommonAjaxService, globalConfig ) {
1212
return {
13-
restrict: 'E',
13+
restrict: "E",
1414
replace: true,
15-
templateUrl: 'features/distributedCallFlow/distributedCallFlow.html?v=${buildTime}',
15+
templateUrl: "features/distributedCallFlow/distributedCallFlow.html?v=${buildTime}",
1616
scope : {
17-
namespace : '@' // string value
17+
namespace : "@" // string value
1818
},
1919
link: function postLink(scope, element, attrs) {
2020
// initialize variables
@@ -34,7 +34,7 @@
3434
if ( bIsAuthorized ) {
3535
return removeTag( text );
3636
} else {
37-
return "<i style='color:#AAA;'>" + removeTag( text ) + "</i>";
37+
return "<i style='color:#AAA;'>" + removeTag( text ) + "</i> <a href='" + globalConfig.securityGuideUrl + "' target='_blank' style='color:#AAA;'><span class='glyphicon glyphicon-share'></span></a>";
3838
}
3939
};
4040
/**
@@ -347,7 +347,7 @@
347347
if ( item.isAuthorized ) {
348348
if ( angular.isDefined( itemNext ) && itemNext.method === "SQL-BindValue" ) {
349349
data += "&bind=" + encodeURIComponent( itemNext.argument );
350-
commonAjaxService.getSQLBind( "/sqlBind.pinpoint", data, function( result ) {
350+
CommonAjaxService.getSQLBind( "/sqlBind.pinpoint", data, function( result ) {
351351
$("#customLogPopup").find("h4").html("SQL").end().find("div.modal-body").html(
352352
'<h4>Binded SQL <button class="btn btn-default btn-xs sql">Copy</button></h4>' +
353353
'<div style="position:absolute;left:10000px">' + result + '</div>' +

‎web/src/main/webapp/features/nodeInfoDetails/node-info-details.directive.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
maxTimeToShowLoadAsDefaultForUnknown: 60 * 60 * 12 // 12h
1212
});
1313

14-
pinpointApp.directive("nodeInfoDetailsDirective", [ "nodeInfoDetailsDirectiveConfig", "$rootScope", "$filter", "$timeout", "isVisibleService", "$window", "AnalyticsService", "PreferenceService", "TooltipService", "CommonAjaxService",
15-
function (cfg, $rootScope, $filter, $timeout, isVisibleService, $window, analyticsService, preferenceService, tooltipService, commonAjaxService ) {
14+
pinpointApp.directive("nodeInfoDetailsDirective", [ "nodeInfoDetailsDirectiveConfig", "$rootScope", "$filter", "$timeout", "isVisibleService", "globalConfig", "$window", "AnalyticsService", "PreferenceService", "TooltipService", "CommonAjaxService",
15+
function (cfg, $rootScope, $filter, $timeout, isVisibleService, globalConfig, $window, analyticsService, preferenceService, tooltipService, commonAjaxService ) {
1616
return {
1717
restrict: "EA",
1818
replace: true,
@@ -254,6 +254,9 @@
254254
scope.isNotAuthorized = function() {
255255
return scope.isAuthorized === false;
256256
};
257+
scope.getAuthGuideUrl = function() {
258+
return globalConfig.securityGuideUrl;
259+
};
257260

258261
/**
259262
* show node detail information of scope

‎web/src/main/webapp/features/nodeInfoDetails/nodeInfoDetails.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ <h5><span class="glyphicon glyphicon-question-sign loadChartTooltip" style="curs
7272

7373
<div ng-show="isNotAuthorized()">
7474
<div style="text-align:center;font-weight:bold;margin-top:50px;">
75-
You don't have authorization for {{node.applicationName}}
75+
You don't have authorization.
76+
<a ng-href="{{getAuthGuideUrl()}}" target="_blank" style="color:#AAA;"><span class='glyphicon glyphicon-share'></span></a>
7677
</div>
7778
</div>
7879

0 commit comments

Comments
 (0)