Skip to content

Commit

Permalink
[#noissue] bug fix.
Browse files Browse the repository at this point in the history
- show inspector button when is WAS node.
  • Loading branch information
denzelsN committed Dec 28, 2017
1 parent 516a627 commit e41e7b7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
});
}
}
scope.isWasNode = function() {
return scope.node && scope.node.isWas;
};
scope.hideLayer = function( delay ) {
delay = delay || 100;
$element.animate({
Expand Down
2 changes: 1 addition & 1 deletion web/src/main/webapp/features/serverList/serverList.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<span class="glyphicon glyphicon-hdd" style="color:{{hasError(instance.name)}}"></span>
<span>{{instance.name}}</span>
</label>
<button style="float:right" type="button" class="btn btn-success btn-xs" ng-click="openInspector($event, instance.name)"><i class="xi-chart-line"></i></button>
<button style="float:right" type="button" class="btn btn-success btn-xs" ng-click="openInspector($event, instance.name)" ng-if="isWasNode()"><i class="xi-chart-line"></i></button>
</li>
</ul>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@
);
}
}
scope.isWasNode = function() {
return scope.isNode && scope.isWas;
};
scope.changeAgent = function() {
AnalyticsService.send( AnalyticsService.CONST.INSPECTOR, AnalyticsService.CONST.CLK_CHANGE_AGENT_MAIN );
$rootScope.$broadcast("changedCurrentAgent." + scope.namespace, scope.currentAgent, oChartYMax);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h3>
<div class="server-list-title" ng-show="hasServerList">
<span>
<button type="button" class="btn btn-success btn-xs" ng-click="showServerList()"><span class="glyphicon glyphicon-th-list"></span>&nbsp;&nbsp;View Servers</button>
<button type="button" class="btn btn-success btn-xs" ng-click="openApplicationInspector()"><i class="xi-chart-line"></i>&nbsp;&nbsp;Inspector</button>
<button type="button" class="btn btn-success btn-xs" ng-click="openApplicationInspector()" ng-if="isWasNode()"><i class="xi-chart-line"></i>&nbsp;&nbsp;Inspector</button>
</span>
<span style="border-right: 1px solid #EAEAEA;">Total <span>{{serverCount}}</span></span>
<span>Error <span style="color:red;">{{errorServerCount}}</span></span>
Expand Down

0 comments on commit e41e7b7

Please sign in to comment.