mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-25 01:30:17 -06:00
Dark/Light now toggles graphs correctly.
This commit is contained in:
parent
4b05efe394
commit
ec557dee78
@ -2,11 +2,9 @@ import {isDarkMode} from "../helpers/dark_mode";
|
|||||||
|
|
||||||
export class DashboardGraph {
|
export class DashboardGraph {
|
||||||
constructor(id) {
|
constructor(id) {
|
||||||
let theme = "macarons";
|
|
||||||
if (isDarkMode()) theme = "dark";
|
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.dom = document.getElementById(id);
|
this.dom = document.getElementById(id);
|
||||||
this.chart = echarts.init(this.dom, theme);
|
this.chart = echarts.init(this.dom);
|
||||||
this.chart.showLoading();
|
this.chart.showLoading();
|
||||||
this.option = {};
|
this.option = {};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user