triggers: option for displaying proxy, #418
This commit is contained in:
@@ -19,6 +19,12 @@
|
||||
checked="ctrl.panel.hostGroups"
|
||||
on-change="ctrl.render()">
|
||||
</gf-form-switch>
|
||||
<gf-form-switch class="gf-form"
|
||||
label-class="width-9"
|
||||
label="Host proxy"
|
||||
checked="ctrl.panel.hostProxy"
|
||||
on-change="ctrl.render()">
|
||||
</gf-form-switch>
|
||||
<gf-form-switch class="gf-form"
|
||||
label-class="width-9"
|
||||
label="Tags"
|
||||
|
||||
@@ -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}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user