blob: 8cbdba11a9d57f88d64dbb0c6fea0bfcca86ba82 [file] [log] [blame]
<!-- tree-view -->
<div *ngIf="node['path'] == '/'">
<!-- recursion - show children -->
<div class="node">
<tree-indent [node]="node" [indentation]="indentation" [type]="'root'"></tree-indent>
<img *ngIf="activeSession.dataVisibility!='all'" class="icon_action" (click)="sessionsService.rpcGet(activeSession, true)"
src="assets/netopeer/icons/show_all.svg" alt="w" title="expand all"
onmouseover="this.src='assets/netopeer/icons/show_all_active.svg'"
onmouseout="this.src='assets/netopeer/icons/show_all.svg'"/>
<img *ngIf="activeSession.dataVisibility!='root'" class="icon_action" (click)="sessionsService.collapse(activeSession)"
src="assets/netopeer/icons/collapse.svg" alt="x" title="collapse"
onmouseover="this.src='assets/netopeer/icons/collapse_active.svg'"
onmouseout="this.src='assets/netopeer/icons/collapse.svg'"/>
</div>
<div class="children" *ngIf="node['children'] || node['newChildren']">
<ng-container *ngFor="let child of treeService.childrenToShow(node)">
<tree-view [node]="child"></tree-view>
</ng-container>
</div>
<!-- create new child dialog -->
<tree-create [node]="node" [activeSession]="activeSession" [indentation]="indentation"></tree-create>
</div>
<div class="subtree" *ngIf="node['path'] != '/' && (node['info']['config'] || activeSession.statusVisibility)"
[class.status]="!node['info']['config']">
<div *ngIf="node['info']['ordered']; else systemOrdered">
<div *ngIf="node['info']['type'] == 16" orderingLists [node]="node" [activeSession]="activeSession">
<div *ngFor="let item of treeService.nodesToShow(activeSession, node)" class="ordered">
<tree-node [activeSession]="activeSession" [node]="item" [indentation]="indentation"></tree-node>
</div>
</div>
<ng-container *ngIf="node['info']['type'] == 8">
<ng-container *ngIf="node['first']">
<tree-node [activeSession]="activeSession" [node]="node" [indentation]="indentation"></tree-node>
</ng-container>
<div orderingLists [node]="node" [activeSession]="activeSession">
<div *ngFor="let item of treeService.nodesToShow(activeSession, node)" class="ordered">
<tree-leaflist-value [node]="item" [activeSession]="activeSession" [indentation]="indentation"></tree-leaflist-value>
</div>
</div>
</ng-container>
</div>
<ng-template #systemOrdered>
<ng-container *ngFor="let item of treeService.nodesToShow(activeSession, node)">
<tree-node *ngIf="item['info']['type'] != 8 || item['first']"
[activeSession]="activeSession" [node]="item" [indentation]="indentation"></tree-node>
<tree-leaflist-value *ngIf="item['info']['type'] == 8" [node]="item" [activeSession]="activeSession" [indentation]="indentation"></tree-leaflist-value>
</ng-container>
</ng-template>
</div>