Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame] | 1 | <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 Krejci | 95bd14c | 2017-09-21 14:24:13 +0200 | [diff] [blame] | 16 | </nav> |
Radek Krejci | 95bd14c | 2017-09-21 14:24:13 +0200 | [diff] [blame] | 17 | |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame] | 18 | <div class="netopeer-content" [style.padding-top]="'calc(' + confignav.offsetHeight + 'px - -0.7em)'"> |
Radek Krejci | 95bd14c | 2017-09-21 14:24:13 +0200 | [diff] [blame] | 19 | <div *ngIf="sessionsService.activeSession"> |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame] | 20 | <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 Krejci | ae75839 | 2017-10-20 10:53:26 +0200 | [diff] [blame] | 21 | <table class="items"> |
| 22 | <tr class="item_header"> |
| 23 | <th class="item_left item_actions" [ngSwitch]="activeSession.cpbltsVisibility"> |
Radek Krejci | 77f7720 | 2017-11-03 15:33:50 +0100 | [diff] [blame] | 24 | <img *ngSwitchCase="false" class="item_action_expand" (click)="getCapabilities(activeSession.key)" |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame] | 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'"/> |
Radek Krejci | 77f7720 | 2017-11-03 15:33:50 +0100 | [diff] [blame] | 28 | <img *ngSwitchCase="true" class="item_action_collapse" (click)="setCpbltsVisibility(false)" |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame] | 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 Krejci | ae75839 | 2017-10-20 10:53:26 +0200 | [diff] [blame] | 32 | </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"> </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 Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame] | 47 | <th class="item_left item_actions" style="cursor: default;"> </th> |
| 48 | <th class="item_right" >Data</th> |
Radek Krejci | ae75839 | 2017-10-20 10:53:26 +0200 | [diff] [blame] | 49 | </tr> |
| 50 | </table> |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame] | 51 | <div> |
Radek Krejci | 77f7720 | 2017-11-03 15:33:50 +0100 | [diff] [blame] | 52 | <img *ngIf="activeSession.dataVisibility!='root'" class="icon_action" (click)="rpcGet(false)" |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame] | 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'"/> |
Radek Krejci | 77f7720 | 2017-11-03 15:33:50 +0100 | [diff] [blame] | 56 | <img *ngIf="activeSession.dataVisibility!='all'" class="icon_action" (click)="rpcGet(true)" |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame] | 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'"/> |
Radek Krejci | 77f7720 | 2017-11-03 15:33:50 +0100 | [diff] [blame] | 60 | <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 Krejci | 3c70822 | 2017-11-03 16:55:19 +0100 | [diff] [blame] | 64 | <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 Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame] | 67 | </div><br/> |
| 68 | <ng-container *ngIf="activeSession.dataVisibility!='none' && activeSession.data"> |
Radek Krejci | ae75839 | 2017-10-20 10:53:26 +0200 | [diff] [blame] | 69 | <div id="config-data"> |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame] | 70 | <tree-view [treeData]="activeSession.data"></tree-view> |
| 71 | <!--<pre>{{activeSession.data | json}}</pre>--> |
Radek Krejci | ae75839 | 2017-10-20 10:53:26 +0200 | [diff] [blame] | 72 | </div> |
Radek Krejci | 26bf2bc | 2018-01-09 15:00:54 +0100 | [diff] [blame^] | 73 | <div #modificationsStatus *ngIf="activeSession.modifications" class="modifications-status-place"> |
| 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 Krejci | ae75839 | 2017-10-20 10:53:26 +0200 | [diff] [blame] | 81 | </ng-container> |
Radek Krejci | 95bd14c | 2017-09-21 14:24:13 +0200 | [diff] [blame] | 82 | </div> |
| 83 | |
| 84 | </div> |