From 675b6f3f5fe6f47eb73e54e1ae5b1d57fe833cd6 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 23 Dec 2023 11:50:40 +0100 Subject: [PATCH 1/3] fix: fix theme issue in tempchart Signed-off-by: Stefan Dej --- src/components/charts/TempChart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/charts/TempChart.vue b/src/components/charts/TempChart.vue index c23a60da3..530fe1835 100644 --- a/src/components/charts/TempChart.vue +++ b/src/components/charts/TempChart.vue @@ -277,7 +277,7 @@ export default class TempChart extends Mixins(BaseMixin, ThemeMixin) { if (datasets.length) { let outputTime = datasets[0]['axisValueLabel'] outputTime = outputTime.substring(outputTime.indexOf(' ')) - let theme = $vuetify.theme.dark ? 'theme-dark' : '' + const theme = this.$vuetify.theme.dark ? 'theme-dark' : '' output += '
' + From b1a698edad90cbc717d2f704ed1d8b105aa64677 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Mon, 25 Dec 2023 21:07:44 +0100 Subject: [PATCH 2/3] fix: fix tooltip of tempchart the tooltip will not go away after 1 second. the chart also will be "stopped" as long as your mouse is hoverd Signed-off-by: Stefan Dej --- src/components/charts/TempChart.vue | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/components/charts/TempChart.vue b/src/components/charts/TempChart.vue index 530fe1835..a748af5e2 100644 --- a/src/components/charts/TempChart.vue +++ b/src/components/charts/TempChart.vue @@ -6,7 +6,9 @@ :init-options="{ renderer: 'svg' }" :autoresize="true" :style="tempchartStyle" - class="tempchart" /> + class="tempchart" + @mouseenter.native="hoverChart = true" + @mouseleave.native="hoverChart = false" />