From cb6706415ef6e5ea539aa8128b40eb916ddb18e3 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 21 Feb 2021 22:34:55 +0100 Subject: [PATCH] bugfix: chart rendering disabled when the chart is hidden Signed-off-by: Stefan Dej --- src/components/charts/TempChart.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/charts/TempChart.vue b/src/components/charts/TempChart.vue index 4f92a1b7..e66517b5 100644 --- a/src/components/charts/TempChart.vue +++ b/src/components/charts/TempChart.vue @@ -224,6 +224,7 @@ export default { ...mapState({ intervalChartUpdate: state => state.gui.tempchart.intervalChartUpdate, intervalDatasetUpdate: state => state.gui.tempchart.intervalDatasetUpdate, + boolTempchart: state => state.gui.dashboard.boolTempchart, }), maxHistory: { get() { @@ -270,6 +271,7 @@ export default { this.timerChart = setInterval(() => { if ( this.chart && + this.boolTempchart && document.visibilityState === "visible" && this.$route.path === "/" ) {