From fdaadaf83e80a9ce44017b2029db944bd2e2a570 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Thu, 4 Feb 2021 13:35:23 +0300 Subject: [PATCH] Problems: show item value in tooltip, fix #1145 --- src/panel-triggers/components/Problems/ProblemDetails.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/panel-triggers/components/Problems/ProblemDetails.tsx b/src/panel-triggers/components/Problems/ProblemDetails.tsx index 7d6fbd4c5..cccc0a6f9 100644 --- a/src/panel-triggers/components/Problems/ProblemDetails.tsx +++ b/src/panel-triggers/components/Problems/ProblemDetails.tsx @@ -216,11 +216,13 @@ interface ProblemItemProps { function ProblemItem(props: ProblemItemProps) { const { item, showName } = props; const itemName = utils.expandItemName(item.name, item.key_); + const tooltipContent = () => <>{itemName}
{item.lastvalue}; + return (
{showName && {item.name}: } - + {item.lastvalue}