Trigger panel: added custom trigger status field (OK or Problem).

This commit is contained in:
Alexander Zobnin
2016-02-03 21:04:10 +03:00
parent a23dbe6aa7
commit 80022e8598
3 changed files with 24 additions and 1 deletions

View File

@@ -11,6 +11,9 @@
Host
</div>
</th>
<th ng-if="panel.statusField" style="width: 85px">
<div class="table-panel-table-header-inner pointer">Status</div>
</th>
<th ng-if="panel.severityField" style="width: 120px">
<div class="table-panel-table-header-inner pointer">Severity</div>
</th>
@@ -35,6 +38,11 @@
<span><strong>{{trigger.host}}</strong></span>
</div>
</td>
<td ng-if="panel.statusField" style="background-color: {{trigger.color}}; color: white">
<div>
{{triggerStatusMap[trigger.value]}}
</div>
</td>
<td ng-if="panel.severityField" style="background-color: {{trigger.color}}; color: white">
<div>
{{trigger.severity}}