From 501f3058ba7421baa233955f230a7dedb089de7b 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 --- .../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 6e84c30bfcab5..d863199dd58d3 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.39.5