Option to enable triggers background highlighting, #532
This commit is contained in:
11
dist/panel-triggers/triggers_panel_ctrl.js
vendored
11
dist/panel-triggers/triggers_panel_ctrl.js
vendored
@@ -675,6 +675,17 @@ System.register(['lodash', 'jquery', 'moment', '../datasource-zabbix/utils', 'ap
|
||||
|
||||
return statusClass;
|
||||
}
|
||||
}, {
|
||||
key: 'getBackground',
|
||||
value: function getBackground(trigger) {
|
||||
// console.log(trigger.color, this.contextSrv.user.lightTheme);
|
||||
var mainColor = trigger.color;
|
||||
var secondColor = this.contextSrv.user.lightTheme ? '#dde4ed' : '#262628';
|
||||
if (this.contextSrv.user.lightTheme) {
|
||||
return 'linear-gradient(135deg, ' + secondColor + ', ' + mainColor + ')';
|
||||
}
|
||||
return 'linear-gradient(135deg, ' + mainColor + ', ' + secondColor + ')';
|
||||
}
|
||||
}, {
|
||||
key: 'isNewTrigger',
|
||||
value: function isNewTrigger(trigger) {
|
||||
|
||||
Reference in New Issue
Block a user