blob: 7a1ef151c9d65740f728f7bd7c5eaaa614672552 [file] [log] [blame]
Radek Krejcia1339602017-11-02 13:52:38 +01001<nav #confignav id="confignav">
2 <a *ngFor="let session of sessionsService.sessions" [class.active]="session.key==activeSession.key"
3 (click)="changeActiveSession(session.key)">{{session.device.hostname}}:{{session.device.port}}
4 <!--<span *ngIf="session.key==activeSession.key" class="tab-reload tab-action-first" (click)="reloadData(session.key)">o</span>-->
5 <img *ngIf="session.key==activeSession.key" class="tab-icon tab-reload tab-action-first" src="assets/netopeer/icons/reload.svg" alt="o" title="reload"
6 onmouseover="this.src='assets/netopeer/icons/reload_active.svg'"
7 onmouseout="this.src='assets/netopeer/icons/reload.svg'" (click)="reloadData()"/>
8 <img class="tab-icon tab-close tab-action-last" src="assets/netopeer/icons/close.svg" alt="x" title="disconnect"
9 onmouseover="this.src='assets/netopeer/icons/close_active.svg'"
10 onmouseout="this.src='assets/netopeer/icons/close.svg'" (click)="disconnect(session.key)"/>
11 </a><a (click)="addSession()" onmouseout="getElementById('tabadd').style.filter='invert(100%)'" onmouseover="getElementById('tabadd').style.filter='invert(0%)'">
12 <img id="tabadd" class="tab-icon tab-add tab-action-last" src="assets/netopeer/icons/add.svg" alt="+" title="add connection"
13 onmouseover="this.src='assets/netopeer/icons/add_active.svg'"
14 onmouseout="this.src='assets/netopeer/icons/add.svg'"/>
15 </a>
Radek Krejci95bd14c2017-09-21 14:24:13 +020016</nav>
Radek Krejci95bd14c2017-09-21 14:24:13 +020017
Radek Krejcia1339602017-11-02 13:52:38 +010018<div class="netopeer-content" [style.padding-top]="'calc(' + confignav.offsetHeight + 'px - -0.7em)'">
Radek Krejci95bd14c2017-09-21 14:24:13 +020019<div *ngIf="sessionsService.activeSession">
Radek Krejcia1339602017-11-02 13:52:38 +010020 <p class="msg-failure msg-rounded" *ngIf="err_msg"><img class="msg-close" (click)="err_msg=''" src="assets/netopeer/icons/close_active.svg" alt="x" title="close"/>{{err_msg}}</p>
Radek Krejciae758392017-10-20 10:53:26 +020021 <table class="items">
22 <tr class="item_header">
23 <th class="item_left item_actions" [ngSwitch]="activeSession.cpbltsVisibility">
Radek Krejci77f77202017-11-03 15:33:50 +010024 <img *ngSwitchCase="false" class="item_action_expand" (click)="getCapabilities(activeSession.key)"
Radek Krejcia1339602017-11-02 13:52:38 +010025 src="assets/netopeer/icons/show.svg" alt="v" title="show"
26 onmouseover="this.src='assets/netopeer/icons/show_active.svg'"
27 onmouseout="this.src='assets/netopeer/icons/show.svg'"/>
Radek Krejci77f77202017-11-03 15:33:50 +010028 <img *ngSwitchCase="true" class="item_action_collapse" (click)="setCpbltsVisibility(false)"
Radek Krejcia1339602017-11-02 13:52:38 +010029 src="assets/netopeer/icons/close.svg" alt="x" title="close"
30 onmouseover="this.src='assets/netopeer/icons/close_active.svg'"
31 onmouseout="this.src='assets/netopeer/icons/close.svg'"/>
Radek Krejciae758392017-10-20 10:53:26 +020032 </th>
33 <th>Capability / Module</th>
34 <th class="item_right">Version</th>
35 </tr>
36 <ng-container *ngIf="activeSession.cpbltsVisibility==true && activeSession.cpblts">
37 <tr class="item" *ngFor="let cap of activeSession.cpblts">
38 <td class="item_left">&nbsp;</td>
39 <td>{{parseCapabilityName(cap)}}</td>
40 <td class="item_right">{{parseCapabilityRevision(cap)}}</td>
41 </tr>
42 </ng-container>
43 </table>
44
45 <table class="items">
46 <tr class="item_header">
Radek Krejcia1339602017-11-02 13:52:38 +010047 <th class="item_left item_actions" style="cursor: default;">&nbsp;</th>
48 <th class="item_right" >Data</th>
Radek Krejciae758392017-10-20 10:53:26 +020049 </tr>
50 </table>
Radek Krejcia1339602017-11-02 13:52:38 +010051 <div>
Radek Krejci77f77202017-11-03 15:33:50 +010052 <img *ngIf="activeSession.dataVisibility!='root'" class="icon_action" (click)="rpcGet(false)"
Radek Krejcia1339602017-11-02 13:52:38 +010053 src="assets/netopeer/icons/show_children.svg" alt="v" title="expand roots"
54 onmouseover="this.src='assets/netopeer/icons/show_children_active.svg'"
55 onmouseout="this.src='assets/netopeer/icons/show_children.svg'"/>
Radek Krejci77f77202017-11-03 15:33:50 +010056 <img *ngIf="activeSession.dataVisibility!='all'" class="icon_action" (click)="rpcGet(true)"
Radek Krejcia1339602017-11-02 13:52:38 +010057 src="assets/netopeer/icons/show_all.svg" alt="w" title="expand all"
58 onmouseover="this.src='assets/netopeer/icons/show_all_active.svg'"
59 onmouseout="this.src='assets/netopeer/icons/show_all.svg'"/>
Radek Krejci77f77202017-11-03 15:33:50 +010060 <img *ngIf="activeSession.dataVisibility!='none'" class="icon_action" (click)="setDataVisibility('none')"
61 src="assets/netopeer/icons/collapse.svg" alt="x" title="collapse"
62 onmouseover="this.src='assets/netopeer/icons/collapse_active.svg'"
63 onmouseout="this.src='assets/netopeer/icons/collapse.svg'"/>
Radek Krejci3c708222017-11-03 16:55:19 +010064 <span *ngIf="activeSession.statusVisibility"><a (click)="invertStatus()">hide</a> status data</span>
65 <span *ngIf="!activeSession.statusVisibility"><a (click)="invertStatus()">show</a> status data</span>
66 <!--<span><input type="checkbox" name="statusVisibility" [checked]="activeSession.statusVisibility" (change)="invertStatus()"/> include status data</span>-->
Radek Krejcia1339602017-11-02 13:52:38 +010067 </div><br/>
68 <ng-container *ngIf="activeSession.dataVisibility!='none' && activeSession.data">
Radek Krejciae758392017-10-20 10:53:26 +020069 <div id="config-data">
Radek Krejcia1339602017-11-02 13:52:38 +010070 <tree-view [treeData]="activeSession.data"></tree-view>
71 <!--<pre>{{activeSession.data | json}}</pre>-->
Radek Krejciae758392017-10-20 10:53:26 +020072 </div>
Radek Krejci26bf2bc2018-01-09 15:00:54 +010073 <div #modificationsStatus *ngIf="activeSession.modifications" class="modifications-status-place">&nbsp;
74 <div *ngIf="activeSession.modifications" class="modifications-status msg-rounded" [style.width.px]="modificationsStatus.offsetWidth">
75 Configuration data were changed. Do you wish to
76 <button (click)="applyChanges()">apply</button> /
77 <button (click)="cancelChanges()">cancel</button>
78 all changes?
79 </div>
80 </div>
Radek Krejciae758392017-10-20 10:53:26 +020081 </ng-container>
Radek Krejci95bd14c2017-09-21 14:24:13 +020082</div>
83
84</div>