From ec557dee78f1fec9ced35a7efe6e1c503efb9074 Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Sat, 20 Jul 2024 09:13:17 -0500 Subject: [PATCH] Dark/Light now toggles graphs correctly. --- .../src/node_manager/js_build/src/graphs/dashboard_graph.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rust/lqosd/src/node_manager/js_build/src/graphs/dashboard_graph.js b/src/rust/lqosd/src/node_manager/js_build/src/graphs/dashboard_graph.js index bf4e2ae2..14e4340c 100644 --- a/src/rust/lqosd/src/node_manager/js_build/src/graphs/dashboard_graph.js +++ b/src/rust/lqosd/src/node_manager/js_build/src/graphs/dashboard_graph.js @@ -2,11 +2,9 @@ import {isDarkMode} from "../helpers/dark_mode"; export class DashboardGraph { constructor(id) { - let theme = "macarons"; - if (isDarkMode()) theme = "dark"; this.id = id; this.dom = document.getElementById(id); - this.chart = echarts.init(this.dom, theme); + this.chart = echarts.init(this.dom); this.chart.showLoading(); this.option = {}; }