problems: able to change font size

This commit is contained in:
Alexander Zobnin
2018-12-27 15:49:32 +03:00
parent b04ecc7abe
commit 0f91b04ed7
3 changed files with 39 additions and 1 deletions

View File

@@ -724,6 +724,9 @@ export class TriggerPanelCtrl extends PanelCtrl {
const timeFrom = Math.ceil(dateMath.parse(ctrl.range.from) / 1000);
const timeTo = Math.ceil(dateMath.parse(ctrl.range.to) / 1000);
const fontSize = parseInt(panel.fontSize.slice(0, panel.fontSize.length - 1));
const fontSizeProp = fontSize && fontSize !== 100 ? fontSize : null;
let panelOptions = {};
for (let prop in PANEL_DEFAULTS) {
panelOptions[prop] = ctrl.panel[prop];
@@ -733,6 +736,7 @@ export class TriggerPanelCtrl extends PanelCtrl {
panelOptions,
timeRange: { timeFrom, timeTo },
loading: ctrl.loading,
fontSize: fontSizeProp,
getProblemEvents: ctrl.getProblemEvents.bind(ctrl),
onProblemAck: (trigger, data) => {
const message = data.message;