Trigger panel: added host technical name, fixes #192.
This commit is contained in:
@@ -150,7 +150,7 @@
|
||||
<strong>Show fields</strong>
|
||||
</li>
|
||||
<li class="tight-form-item">
|
||||
<label class="checkbox-label" for="hostField">Host</label>
|
||||
<label class="checkbox-label" for="hostField">Host Name</label>
|
||||
<input class="cr1"
|
||||
id="hostField"
|
||||
type="checkbox"
|
||||
@@ -158,6 +158,15 @@
|
||||
ng-checked="editor.panel.hostField">
|
||||
<label for="hostField" class="cr1"></label>
|
||||
</li>
|
||||
<li class="tight-form-item">
|
||||
<label class="checkbox-label" for="hostField">Host Technical Name</label>
|
||||
<input class="cr1"
|
||||
id="hostTechNameField"
|
||||
type="checkbox"
|
||||
ng-model="editor.panel.hostTechNameField"
|
||||
ng-checked="editor.panel.hostTechNameField">
|
||||
<label for="hostTechNameField" class="cr1"></label>
|
||||
</li>
|
||||
<li class="tight-form-item">
|
||||
<label class="checkbox-label" for="statusField">Status</label>
|
||||
<input class="cr1"
|
||||
@@ -176,6 +185,14 @@
|
||||
ng-checked="editor.panel.severityField">
|
||||
<label for="severityField" class="cr1"></label>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="tight-form">
|
||||
<ul class="tight-form-list">
|
||||
<li class="tight-form-item" style="width: 100px">
|
||||
<strong> </strong>
|
||||
</li>
|
||||
<li class="tight-form-item">
|
||||
<label class="checkbox-label" for="lastChangeField">Last change</label>
|
||||
<input class="cr1"
|
||||
@@ -194,7 +211,7 @@
|
||||
ng-checked="editor.panel.ageField">
|
||||
<label for="ageField" class="cr1"></label>
|
||||
</li>
|
||||
<li class="tight-form-item last">
|
||||
<li class="tight-form-item">
|
||||
<label class="checkbox-label" for="infoField">Info</label>
|
||||
<input class="cr1"
|
||||
id="infoField"
|
||||
@@ -206,6 +223,7 @@
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="tight-form">
|
||||
<ul class="tight-form-list">
|
||||
<li class="tight-form-item">
|
||||
|
||||
@@ -9,6 +9,11 @@
|
||||
Host
|
||||
</div>
|
||||
</th>
|
||||
<th ng-if="ctrl.panel.hostTechNameField" style="width: 15%">
|
||||
<div class="triggers-panel-table-header-inner pointer">
|
||||
Technical Name
|
||||
</div>
|
||||
</th>
|
||||
<th ng-if="ctrl.panel.statusField" style="width: 85px">
|
||||
<div class="triggers-panel-table-header-inner pointer">Status</div>
|
||||
</th>
|
||||
@@ -38,6 +43,12 @@
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td ng-if="ctrl.panel.hostTechNameField">
|
||||
<div>
|
||||
<span><strong>{{trigger.hostTechName}}</strong></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td ng-if="ctrl.panel.statusField" style="background-color: {{trigger.color}}; color: white">
|
||||
<div>
|
||||
{{ctrl.triggerStatusMap[trigger.value]}}
|
||||
|
||||
@@ -140,6 +140,7 @@ class TriggerPanelCtrl extends MetricsPanelCtrl {
|
||||
// Set host that the trigger belongs
|
||||
if (trigger.hosts.length) {
|
||||
triggerObj.host = trigger.hosts[0].name;
|
||||
triggerObj.hostTechName = trigger.hosts[0].host;
|
||||
}
|
||||
|
||||
// Set color
|
||||
|
||||
Reference in New Issue
Block a user