blob: 65cae492e87fb228a82d45094dedcea158e7ebd0 [file] [log] [blame]
Bhavesh Kumard0b8bae2018-07-31 16:56:43 +05301<!--
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-settings">
Sean Condon95fb5742019-04-02 12:16:55 +010017 <onos-loading [theme]="'light'" [running]="loadingIconShown"></onos-loading>
Bhavesh Kumard0b8bae2018-07-31 16:56:43 +053018 <div class="tabular-header">
19 <h2>Component Settings ({{tableData.length}} total)</h2>
20 <div class="ctrl-btns">
21 <div class="refresh" (click)="toggleRefresh()">
22 <onos-icon classes="{{ autoRefresh?'active refresh':'refresh' }}" iconId="refresh" iconSize="42" toolTip="{{ autoRefreshTip }}"></onos-icon>
23 </div>
24 </div>
25 </div>
26 <div class="summary-list" onosTableResize>
27 <div class="table-header">
28 <table>
29 <tr>
30 <td colId="component" [ngStyle]="{width: '260px'}" (click)="onSort('component')">Component
31 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('component')"></onos-icon>
32 </td>
33 <td colId="prop" [ngStyle]="{width: '260px'}" (click)="onSort('prop')">Property
34 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('prop')"></onos-icon>
35 </td>
36 <td colId="type" [ngStyle]="{width: '80px'}" (click)="onSort('type')">Type
37 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('type')"></onos-icon>
38 </td>
39 <td colId="value" [ngStyle]="{width: '260px'}" (click)="onSort('value')">Value
40 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('value')"></onos-icon>
41 </td>
42 <td colId="desc" (click)="onSort('desc')">Description
43 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('desc')"></onos-icon>
44 </td>
45 </tr>
46 </table>
47 </div>
48 <div class="table-body">
49 <table>
50 <tr *ngIf="tableData.length === 0" class="no-data">
51 <td colspan="5">{{ annots.noRowMsg }}</td>
52 </tr>
53 <tr *ngFor="let setting of tableData" (click)="selectCallback($event, setting)" [ngClass]="{selected: setting.id === selId, 'data-change': isChanged(setting.id)}">
54 <td [ngStyle]="{width: '260px'}">{{setting.component}}</td>
55 <td [ngStyle]="{width: '260px'}">{{setting.prop}}</td>
56 <td [ngStyle]="{width: '80px'}">{{setting.type}}</td>
57 <td [ngStyle]="{width: '260px'}" [ngClass]="{notdef: setting.value !== setting.defValue}">{{setting.value}}</td>
58 <td>{{setting.desc}}</td>
59 </tr>
60 </table>
61 </div>
62 </div>
63 <onos-settingsdetails class="floatpanels" id="{{ selId }}" [settingsDetails]="settingsDetails" (closeEvent)="deselectRow($event)"></onos-settingsdetails>
Sean Condon95fb5742019-04-02 12:16:55 +010064</div>