mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Dark/Light now toggles graphs correctly.
This commit is contained in:
@@ -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 = {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user