2018-06-01 07:32:16 +00:00
|
|
|
<div>
|
2018-06-01 11:25:51 +00:00
|
|
|
<button pButton type="button" label="TestHost" (click)="tempHost()"></button>
|
|
|
|
<button pButton type="button" label="TestService" (click)="tempService()"></button>
|
2018-06-04 08:31:00 +00:00
|
|
|
<button pButton type="button" label="tempPort" (click)="tempPort()"></button>
|
2018-06-01 11:25:51 +00:00
|
|
|
|
|
|
|
<p-tree [value]="zoneNode" layout="vertical">
|
|
|
|
|
|
|
|
<!-- ZONE node template -->
|
|
|
|
<ng-template let-node pTemplate="ZONE">
|
|
|
|
<div>
|
|
|
|
{{node.label}}
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- HOST node template -->
|
|
|
|
<ng-template let-node pTemplate="HOST">
|
|
|
|
<div @discoveryResultAnim>
|
2018-06-04 12:50:46 +00:00
|
|
|
<div *ngIf="checkUnhighligtHost(node.label) else normHost">
|
2018-06-04 09:25:48 +00:00
|
|
|
<div>{{node.label}}</div>
|
|
|
|
</div>
|
|
|
|
<ng-template #normHost>
|
2018-06-04 12:50:46 +00:00
|
|
|
<p-toggleButton onLabel="{{node.label}}" offLabel="{{node.label}}" onIcon="fa-check" offIcon="fa-square" [style]="{'width':'200px'}"
|
|
|
|
(onChange)="onTargetSelect($event, node.data)"></p-toggleButton>
|
2018-06-04 09:25:48 +00:00
|
|
|
</ng-template>
|
2018-06-01 11:25:51 +00:00
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
<!-- SERVICE node template -->
|
|
|
|
<ng-template let-node pTemplate="SERVICE">
|
2018-06-01 07:32:16 +00:00
|
|
|
<div @discoveryResultAnim>
|
2018-06-04 12:50:46 +00:00
|
|
|
<div *ngIf="checkHighligtService(node.data.name) else unhighlight">
|
2018-06-04 09:25:48 +00:00
|
|
|
<p-toggleButton onLabel="{{node.label}} {{node.data.portType}}" offLabel="{{node.label}} {{node.data.portType}} {{node.data.portNumber}}"
|
|
|
|
onIcon="fa-check" offIcon="fa-square" [style]="{'width':'300px'}" (onChange)="onTargetSelect($event, node.data)"></p-toggleButton>
|
2018-06-04 12:50:46 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<ng-template #unhighlight>
|
|
|
|
<div>{{node.label}} {{node.data.portType}}</div>
|
2018-06-04 09:25:48 +00:00
|
|
|
</ng-template>
|
2018-06-04 12:50:46 +00:00
|
|
|
|
2018-06-01 07:32:16 +00:00
|
|
|
</div>
|
|
|
|
</ng-template>
|
2018-06-01 11:25:51 +00:00
|
|
|
|
2018-06-01 07:32:16 +00:00
|
|
|
</p-tree>
|
2018-05-30 14:05:58 +00:00
|
|
|
</div>
|