UI: Time-series chart dark mode improvement
This commit is contained in:
parent
f2b4bce2c8
commit
a7eee8fe62
@ -139,7 +139,8 @@ export class TbTimeSeriesChart {
|
||||
this.settings = mergeDeep({} as TimeSeriesChartSettings,
|
||||
timeSeriesChartDefaultSettings,
|
||||
this.inputSettings as TimeSeriesChartSettings);
|
||||
const dashboardPageElement = this.ctx.$containerParent.parents('.tb-dashboard-page');
|
||||
const $dashboardPageElement = this.ctx.$containerParent.parents('.tb-dashboard-page');
|
||||
const dashboardPageElement = $($dashboardPageElement[$dashboardPageElement.length-1]);
|
||||
this.darkMode = this.settings.darkMode || dashboardPageElement.hasClass('dark');
|
||||
this.setupYAxes();
|
||||
this.setupData();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user