member_webapp/@overflow/infra/component/infra-tree.component.html

30 lines
1.0 KiB
HTML
Raw Normal View History

2018-06-08 11:37:13 +00:00
<of-block-progressbar [target]="content" [pending]="pending$ | async"></of-block-progressbar>
<p-panel #content [showHeader]="false" class="block-panel">
<p-tree [value]="zoneNode" layout="horizontal">
<!-- ZONE node template -->
<ng-template let-node pTemplate="ZONE">
2018-06-12 05:45:21 +00:00
<div (contextmenu)="showContextMenu($event, node)">
2018-06-08 11:37:13 +00:00
{{node.label}}
</div>
</ng-template>
<!-- HOST node template -->
<ng-template let-node pTemplate="HOST">
2018-06-12 05:45:21 +00:00
<div (contextmenu)="showContextMenu($event, node)">
{{node.label}}
</div>
2018-06-08 11:37:13 +00:00
</ng-template>
<!-- SERVICE node template -->
<ng-template let-node pTemplate="SERVICE">
2018-06-12 05:45:21 +00:00
<div (contextmenu)="showContextMenu($event, node)">
{{node.label}}
</div>
2018-06-08 11:37:13 +00:00
</ng-template>
</p-tree>
2018-06-12 05:45:21 +00:00
<p-contextMenu #cmZone [model]="contextMenuZone" appendTo="body"></p-contextMenu>
<p-contextMenu #cmHost [model]="contextMenuHost" appendTo="body"></p-contextMenu>
<p-contextMenu #cmService [model]="contextMenuService" appendTo="body"></p-contextMenu>
</p-panel>