Sean Condon | 87b7850 | 2018-09-17 20:53:24 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright 2018-present Open Networking Foundation |
| 3 | ~ |
| 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | ~ you may not use this file except in compliance with the License. |
| 6 | ~ You may obtain a copy of the License at |
| 7 | ~ |
| 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | ~ |
| 10 | ~ Unless required by applicable law or agreed to in writing, software |
| 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | ~ See the License for the specific language governing permissions and |
| 14 | ~ limitations under the License. |
| 15 | --> |
| 16 | <div id="ov-alarm-table"> |
Sean Condon | 95fb574 | 2019-04-02 12:16:55 +0100 | [diff] [blame] | 17 | <onos-loading [theme]="'light'" [running]="loadingIconShown"></onos-loading> |
| 18 | <div class="tabular-header"> |
Sean Condon | 87b7850 | 2018-09-17 20:53:24 +0100 | [diff] [blame] | 19 | <h2>Alarms for {{ "all devices."}} ({{ tableData.length }} total)</h2> |
| 20 | <div class="ctrl-btns"> |
| 21 | <div class="refresh" (click)="toggleRefresh()"> |
| 22 | <!-- See icon.theme.css for the defintions of the classes active and refresh--> |
| 23 | <onos-icon classes="{{ autoRefresh?'active refresh':'refresh' }}" iconId="refresh" iconSize="36" toolTip="{{ autoRefreshTip }}"></onos-icon> |
| 24 | </div> |
| 25 | <!--div class="separator"></div> |
| 26 | <div (click)="(!!selId) ? confirmAction(AlarmActionEnum.ACKNOWLEDGE) : ''"> |
| 27 | <onos-icon classes="{{ ctrlBtnState.acknowledged?'active-rect play':'play' }}" |
| 28 | iconId="play" iconSize="42" toolTip="{{ acknowledgeTip }}"></onos-icon> |
| 29 | </div> |
| 30 | <div (click)="(!!selId) ? confirmAction(AlarmActionEnum.CLEAR) : ''"> |
| 31 | <onos-icon classes="{{ ctrlBtnState.cleared?'active-rect stop':'stop' }}" |
| 32 | iconId="stop" iconSize="42" toolTip="{{ clearTip }}"></onos-icon> |
| 33 | </div--> |
| 34 | </div> |
| 35 | </div> |
| 36 | |
| 37 | <div class="summary-list" class="summary-list" onosTableResize> |
| 38 | |
| 39 | <div class="table-header"> |
| 40 | <table> |
| 41 | <tr> |
| 42 | <td colId="alarmId" (click)="onSort('id')">Id |
| 43 | <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('id')"></onos-icon> |
| 44 | </td> |
| 45 | <td colId="alarmDeviceId" (click)="onSort('alarmDeviceId')">Device |
| 46 | <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('alarmDeviceId')"></onos-icon> |
| 47 | </td> |
| 48 | <td colId="alarmDesc" (click)="onSort('alarmDesc')">Description |
| 49 | <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('alarmDesc')"></onos-icon> |
| 50 | </td> |
| 51 | <td colId="alarmSource" (click)="onSort('alarmSource')">Source |
| 52 | <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('alarmSource')"></onos-icon> |
| 53 | </td> |
| 54 | <td colId="alarmTimeRaised" (click)="onSort('alarmTimeRaised')">Time Raised |
| 55 | <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('alarmTimeRaised')"></onos-icon> |
| 56 | </td> |
| 57 | <td colId="alarmSeverity" (click)="onSort('alarmSeverity')">Severity |
| 58 | <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('alarmSeverity')"></onos-icon> |
| 59 | </td> |
| 60 | <td colId="alarmAcknowledged" (click)="onSort('alarmAcknowledged')">Acknowledged |
| 61 | <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('alarmAcknowledged')"></onos-icon> |
| 62 | </td> |
| 63 | </tr> |
| 64 | </table> |
| 65 | </div> |
| 66 | |
| 67 | <div class="table-body"> |
| 68 | <table> |
| 69 | <tr class="table-body" *ngIf="tableData.length === 0" class="no-data"> |
| 70 | <td colspan="9">{{ annots.noRowsMsg }}</td> |
| 71 | </tr> |
| 72 | <tr *ngFor="let item of tableData | filter : tableDataFilter" (click)="selectCallback($event, item)" [ngClass]="{selected: item.id === selId, 'data-change': isChanged(item.id)}"> |
| 73 | <td>{{ item.id }}</td> |
| 74 | <td>{{ item.alarmDeviceId }}</td> |
| 75 | <td>{{ item.alarmDesc }}</td> |
| 76 | <td>{{ item.alarmSource }}</td> |
| 77 | <td>{{ item.alarmTimeRaised }}</td> |
| 78 | <td>{{ item.alarmSeverity }}</td> |
| 79 | <td class="table-icon"> |
| 80 | <onos-icon [iconId]="ackIcon(item.alarmAcknowledged)"></onos-icon> |
| 81 | </td> |
| 82 | </tr> |
| 83 | </table> |
| 84 | </div> |
| 85 | </div> |
| 86 | |
| 87 | <onos-alarmdetails class="floatpanels" id="{{ selId }}" (closeEvent)="deselectRow($event)"></onos-alarmdetails> |
| 88 | </div> |