triggers: option for displaying proxy, #418

This commit is contained in:
Alexander Zobnin
2018-11-07 11:11:57 +03:00
parent b45eb5ac6f
commit adc00541e1
2 changed files with 8 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ export const PANEL_DEFAULTS = {
hostField: true,
hostTechNameField: false,
hostGroups: false,
hostProxy: false,
showTags: true,
statusField: true,
severityField: true,
@@ -514,7 +515,7 @@ export class TriggerPanelCtrl extends PanelCtrl {
} else if (this.panel.hostField || this.panel.hostTechNameField) {
host = this.panel.hostField ? trigger.host : trigger.hostTechName;
}
if (trigger.proxy) {
if (this.panel.hostProxy && trigger.proxy) {
host = `${trigger.proxy}: ${host}`;
}