From b6a614d478cde73cc95ee31dc5a80915bf47ea4a Mon Sep 17 00:00:00 2001 From: Alexandr Velikiy <39257464+VargBurz@users.noreply.github.com> Date: Mon, 7 Oct 2019 14:38:22 +0300 Subject: [PATCH] Change segments icons in tooltip #376 (#378) * deleted color for pattern * color for deleted * icons * trash to minus * fix * change ui * fix --- src/panel/graph_panel/graph_tooltip.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/panel/graph_panel/graph_tooltip.ts b/src/panel/graph_panel/graph_tooltip.ts index f0e1a4a..6374b28 100644 --- a/src/panel/graph_panel/graph_tooltip.ts +++ b/src/panel/graph_panel/graph_tooltip.ts @@ -206,21 +206,29 @@ export class GraphTooltip { var to = this.dashboard.formatDate(s.segment.to, 'HH:mm:ss.SSS'); let icon; + let subIcon; if(s.segment.labeled) { icon = 'fa-thumb-tack'; + subIcon = 'fa-plus'; } else if (s.segment.deleted) { - icon = 'fa-trash'; + icon = 'fa-thumb-tack'; + subIcon = 'fa-minus'; } else { - icon = 'fa-search-plus'; + icon = 'fa-crosshairs'; + subIcon = ''; + } + let segmentColor = s.analyticUnit.labeledColor; + if(s.segment.deleted === true) { + segmentColor = s.analyticUnit.deletedColor; } result += `
- + + ${s.analyticUnit.name}:
- ${from} — ${to}