blob: 8b398e54a4ba69fd2500873487c5212b1f105dc4 [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 Krejcia1339602017-11-02 13:52:38 +010024 <img *ngSwitchCase="false" class="item_action_expand" (click)="getCapabilities(activeSession.key);activeSession.cpbltsVisibility=true"
25 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'"/>
28 <img *ngSwitchCase="true" class="item_action_collapse" (click)="activeSession.cpbltsVisibility=false"
29 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>
52 <img *ngIf="activeSession.dataVisibility!='root'" class="icon_action" (click)="rpcGet(false);activeSession.dataVisibility='root'"
53 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'"/>
56 <img *ngIf="activeSession.dataVisibility!='all'" class="icon_action" (click)="rpcGet(true);activeSession.dataVisibility='all'"
57 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'"/>
60 <img *ngIf="activeSession.dataVisibility!='none'" class="icon_action" (click)="activeSession.dataVisibility='none'"
61 src="assets/netopeer/icons/close.svg" alt="x" title="close"
62 onmouseover="this.src='assets/netopeer/icons/close_active.svg'"
63 onmouseout="this.src='assets/netopeer/icons/close.svg'"/>
64 <span><input type="checkbox" name="statusVisibility" [checked]="activeSession.statusVisibility" (change)="activeSession.statusVisibility = !activeSession.statusVisibility"/> include status data</span>
65 </div><br/>
66 <ng-container *ngIf="activeSession.dataVisibility!='none' && activeSession.data">
Radek Krejciae758392017-10-20 10:53:26 +020067 <div id="config-data">
Radek Krejcia1339602017-11-02 13:52:38 +010068 <tree-view [treeData]="activeSession.data"></tree-view>
69 <!--<pre>{{activeSession.data | json}}</pre>-->
Radek Krejciae758392017-10-20 10:53:26 +020070 </div>
71 </ng-container>
Radek Krejci95bd14c2017-09-21 14:24:13 +020072</div>
73
74</div>