Fix Bug 2148: VDU Id issue & Multivdu Count Index Error in VM Action
- Resolved vduId dropdown issue by removing the duplicate values
from the array
- Resolved multivdu countIndex error by filtering count index
with selected vduId
Change-Id: I1231afb4bb3b013816cd8d7b8c50ae3decf5dbea
Signed-off-by: SANDHYA.JS <sandhya.j@tataelxsi.co.in>
diff --git a/src/app/utilities/vm-migration/VmMigrationComponent.html b/src/app/utilities/vm-migration/VmMigrationComponent.html
index 343a6be..fa1cd14 100644
--- a/src/app/utilities/vm-migration/VmMigrationComponent.html
+++ b/src/app/utilities/vm-migration/VmMigrationComponent.html
@@ -44,8 +44,8 @@
<label for="vduid"> {{'VDUID' | translate}}</label>
</div>
<div class="col-sm-6">
- <ng-select formControlName="vduId" [clearable]="false"
- placeholder="{{'SELECT' | translate}} {{'VDUID' | translate}}" [items]="vdu" bindLabel="VDU"
+ <ng-select formControlName="vduId" [clearable]="false" (change)="getCountIndex($event.VDU)"
+ placeholder="{{'SELECT' | translate}} {{'VDUID' | translate}}" [items]="vduId" bindLabel="VDU"
bindValue="VDU" [ngClass]="{ 'is-invalid': submitted && f.vduId.errors }">
</ng-select>
</div>
@@ -56,7 +56,7 @@
</div>
<div class="col-sm-6">
<ng-select formControlName="countIndex" [clearable]="false"
- placeholder="{{'SELECT' | translate}} {{'COUNTINDEX' | translate}}" [items]="vdu"
+ placeholder="{{'SELECT' | translate}} {{'COUNTINDEX' | translate}}" [items]="countIndex"
bindLabel="count-index" bindValue="count-index"
[ngClass]="{ 'is-invalid': submitted && f.countIndex.errors }">
</ng-select>