From: Tiago Melo Date: Thu, 14 Nov 2019 17:42:34 +0000 (-0100) Subject: mgr/dashboard: Remove title from sparkline tooltips X-Git-Tag: v14.2.8~100^2~6^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=02c8b069f9e9c3306c7d62490673c6025d528be0;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 (cherry picked from commit 501f3058ba7421baa233955f230a7dedb089de7b) --- 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: {