This commit is contained in:
insanity
2018-06-05 15:07:12 +09:00
parent 5077020864
commit a432368a8e
4 changed files with 59 additions and 11 deletions

View File

@@ -17,11 +17,11 @@
<div @discoveryResultAnim>
<div *ngIf="checkHighligtHost(node.label) else unhighlightHost">
<p-toggleButton onLabel="{{node.label}}" offLabel="{{node.label}}" onIcon="fa-check" offIcon="fa-square" [style]="{'width':'200px'}"
(onChange)="onTargetSelect($event, node.data)"></p-toggleButton>
(onChange)="onTargetSelect($event, node)"></p-toggleButton>
</div>
<ng-template #unhighlightHost>
<div>{{node.label}}</div>
<div style="opacity: 0.2">{{node.label}}</div>
</ng-template>
</div>
</ng-template>
@@ -31,11 +31,11 @@
<div @discoveryResultAnim>
<div *ngIf="checkHighligtService(node.data.name) else unhighlightServ">
<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>
onIcon="fa-check" offIcon="fa-square" [style]="{'width':'300px'}" (onChange)="onTargetSelect($event, node)"></p-toggleButton>
</div>
<ng-template #unhighlightServ>
<div>{{node.label}} {{node.data.portType}}</div>
<div style="opacity: 0.2">{{node.label}} {{node.data.portType}}</div>
</ng-template>
</div>