triggers panel: update panel options
This commit is contained in:
14
dist/panel-triggers/triggers_panel_ctrl.js
vendored
14
dist/panel-triggers/triggers_panel_ctrl.js
vendored
@@ -101,16 +101,14 @@ System.register(['lodash', 'jquery', 'moment', '../datasource-zabbix/utils', 'ap
|
||||
DEFAULT_TIME_FORMAT = "DD MMM YYYY HH:mm:ss";
|
||||
|
||||
_export('PANEL_DEFAULTS', PANEL_DEFAULTS = {
|
||||
schemaVersion: 2,
|
||||
schemaVersion: 3,
|
||||
datasources: [],
|
||||
targets: {},
|
||||
// Fields
|
||||
hostField: true,
|
||||
statusField: false,
|
||||
severityField: false,
|
||||
lastChangeField: true,
|
||||
ageField: true,
|
||||
infoField: true,
|
||||
hostTechNameField: false,
|
||||
statusField: true,
|
||||
severityField: true,
|
||||
// Options
|
||||
hideHostsInMaintenance: false,
|
||||
showTriggers: 'all triggers',
|
||||
@@ -119,9 +117,7 @@ System.register(['lodash', 'jquery', 'moment', '../datasource-zabbix/utils', 'ap
|
||||
limit: 10,
|
||||
// View options
|
||||
fontSize: '100%',
|
||||
fontColor: null,
|
||||
pageSize: 10,
|
||||
scroll: true,
|
||||
customLastChangeFormat: false,
|
||||
lastChangeFormat: "",
|
||||
// Triggers severity and colors
|
||||
@@ -535,7 +531,7 @@ System.register(['lodash', 'jquery', 'moment', '../datasource-zabbix/utils', 'ap
|
||||
var footerElem = elem.find('.triggers-panel-footer');
|
||||
appendPaginationControls(footerElem);
|
||||
setFontSize();
|
||||
rootElem.css({ 'max-height': panel.scroll ? getContentHeight() : '' });
|
||||
rootElem.css({ 'max-height': getContentHeight() });
|
||||
rootElem.css({ 'height': getContentHeight() });
|
||||
ctrl.renderingCompleted();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user