You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by wu...@apache.org on 2020/05/07 07:05:10 UTC

[skywalking-rocketbot-ui] branch master updated: Fix: the is real node (#293)

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

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-rocketbot-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new 0416d32  Fix: the is real node (#293)
0416d32 is described below

commit 0416d325243be661142fba415717ddc926127016
Author: Allen Wang <Al...@outlook.com>
AuthorDate: Thu May 7 15:05:04 2020 +0800

    Fix: the is real node (#293)
    
    Co-authored-by: 吴晟 Wu Sheng <wu...@foxmail.com>
---
 src/views/components/topology/chart/utils/nodeElement.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/views/components/topology/chart/utils/nodeElement.js b/src/views/components/topology/chart/utils/nodeElement.js
index 178b054..0091c67 100644
--- a/src/views/components/topology/chart/utils/nodeElement.js
+++ b/src/views/components/topology/chart/utils/nodeElement.js
@@ -49,7 +49,7 @@ export default (d3, graph, tool, funcs, tip) => {
     .attr('x', 2)
     .attr('y', 10)
     .attr('style', 'cursor: move;')
-    .attr('xlink:href', (d) => (d.sla < 98 ? icons.CUBEERROR : icons.CUBE));
+    .attr('xlink:href', (d) => ((d.sla < 98 && d.isReal) ? icons.CUBEERROR : icons.CUBE));
   nodeEnter
     .append('image')
     .attr('width', 32)