Skip to content

Commit 6a39fc1

Browse files
committed
add mark for thread-dump feature
1 parent f05079f commit 6a39fc1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎web/src/main/webapp/features/realtimeChart/realtime-chart.controller.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@
263263
}
264264
}
265265
function setAgentName( index, name ) {
266-
aAgentChartElementList[index].find("div").html(name);
266+
aAgentChartElementList[index].find("div").html('<span>' + name + '</span><span class="glyphicon glyphicon-new-window"></span>');
267267
}
268268
function getSumOfRequestType( datum ) {
269269
var aRequestSum = [0, 0, 0, 0];
@@ -416,7 +416,7 @@
416416
if ($target.hasClass("agent-chart-list")) {
417417
return;
418418
}
419-
var agentId = $target.hasClass("agent-chart") ? $target.find("> div").html() : $target.parent(".agent-chart").find("> div").html();
419+
var agentId = $target.parents(".agent-chart").find("div > span:first-child").html();
420420
var openType = LocalStorageManagerService.getThreadDumpLayerOpenType();
421421
if (openType === null || openType === "window") {
422422
$window.open(

‎web/src/main/webapp/styles/serverMap.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@
205205
}
206206
.realtime .agent-chart {
207207
float: left;
208+
cursor: pointer;
208209
width: 122px;
209210
height: 72px;
210211
margin: 0px 2px 2px 4px;
@@ -222,6 +223,9 @@
222223
text-overflow: ellipsis;
223224
background-color: rgba(205, 211, 33, 0.5);
224225
}
226+
.realtime .agent-chart > div span:last-child {
227+
float:right;
228+
}
225229
.realtime .agent-sum-chart svg {
226230
font: 10px sans-serif;
227231
display: block;

0 commit comments

Comments
 (0)