]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Remove title from sparkline tooltips 31645/head
authorTiago Melo <tspmelo@gmail.com>
Thu, 14 Nov 2019 17:42:34 +0000 (16:42 -0100)
committerTiago Melo <tspmelo@gmail.com>
Thu, 14 Nov 2019 17:45:00 +0000 (16:45 -0100)
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 <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/components/sparkline/sparkline.component.ts

index 6e84c30bfcab5da5da2a22234072ca611f86b16c..d863199dd58d3ee07bb5802662d6971af016bce1 100644 (file)
@@ -62,7 +62,8 @@ export class SparklineComponent implements OnInit, OnChanges {
           } else {
             return tooltipItem.yLabel;
           }
-        }
+        },
+        title: () => ''
       }
     },
     scales: {