]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Remove title from sparkline tooltips 31737/head
authorTiago Melo <tspmelo@gmail.com>
Thu, 14 Nov 2019 17:42:34 +0000 (16:42 -0100)
committerTiago Melo <tmelo@suse.com>
Tue, 19 Nov 2019 13:07:13 +0000 (12:07 -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>
(cherry picked from commit 501f3058ba7421baa233955f230a7dedb089de7b)

src/pybind/mgr/dashboard/frontend/src/app/shared/components/sparkline/sparkline.component.ts

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