From: Tiago Melo Date: Thu, 14 Nov 2019 17:42:34 +0000 (-0100) Subject: mgr/dashboard: Remove title from sparkline tooltips X-Git-Tag: v15.1.0~865^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F31645%2Fhead;p=ceph.git 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 --- 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 6e84c30bfcab..d863199dd58d 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: {