bugfix: chart rendering disabled when the chart is hidden
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 parent
e872c3e975
commit
cb6706415e
1 file changed
+2
@@ -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 === "/"
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user