mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-24 17:20:16 -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 {
|
||||
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 = {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user