From 02c8b069f9e9c3306c7d62490673c6025d528be0 Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Thu, 14 Nov 2019 16:42:34 -0100 Subject: [PATCH] mgr/dashboard: Remove title from sparkline tooltips Title was never being defined in sparklines and was always displayed as 'undefined'. Since they are not needed for this type of chart, we are simply going to remove them. Fixes: https://tracker.ceph.com/issues/41656 Signed-off-by: Tiago Melo (cherry picked from commit 501f3058ba7421baa233955f230a7dedb089de7b) --- .../src/app/shared/components/sparkline/sparkline.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/sparkline/sparkline.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/sparkline/sparkline.component.ts index 6b2a268d7fe..856eabf798c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/sparkline/sparkline.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/sparkline/sparkline.component.ts @@ -62,7 +62,8 @@ export class SparklineComponent implements OnInit, OnChanges { } else { return tooltipItem.yLabel; } - } + }, + title: () => '' } }, scales: { -- 2.47.3