X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Futilities%2Fns-instances-action%2FNSInstancesActionComponent.ts;h=5f9d5e33a70a3233b0f8452b9d3292b7f1537f44;hb=refs%2Ftags%2Fv13.0.0rc1;hp=1c3f1f293af926c65f8f7fbc06c497f4661e797f;hpb=3d81a28cd6df38cb070c6a6afbbd1528a766f16e;p=osm%2FNG-UI.git diff --git a/src/app/utilities/ns-instances-action/NSInstancesActionComponent.ts b/src/app/utilities/ns-instances-action/NSInstancesActionComponent.ts index 1c3f1f2..5f9d5e3 100644 --- a/src/app/utilities/ns-instances-action/NSInstancesActionComponent.ts +++ b/src/app/utilities/ns-instances-action/NSInstancesActionComponent.ts @@ -37,6 +37,7 @@ import { SharedService } from 'SharedService'; import { ShowInfoComponent } from 'ShowInfoComponent'; import { StartStopRebuildComponent } from 'StartStopRebuildComponent'; import { isNullOrUndefined } from 'util'; +import { VerticalScalingComponent } from 'VerticalScalingComponent'; import { VmMigrationComponent } from 'VmMigrationComponent'; import { DF, VDU, VNFD } from 'VNFDModel'; /** @@ -169,7 +170,8 @@ export class NSInstancesActionComponent { this.modalService.open(NSPrimitiveComponent, { backdrop: 'static' }).componentInstance.params = { memberIndex: this.value.memberIndex, nsConfig: this.value.nsConfig, - name: this.value.NsdName + name: this.value.NsdName, + id: this.value.constituent }; } @@ -306,6 +308,19 @@ export class NSInstancesActionComponent { }).catch(); } + /** To open the vertical Scaling pop-up */ + public openVerticalScaling(): void { + const modalRef: NgbModalRef = this.modalService.open(VerticalScalingComponent, { backdrop: 'static' }); + modalRef.componentInstance.params = { + id: this.instanceID + }; + modalRef.result.then((result: MODALCLOSERESPONSEDATA): void => { + if (result) { + this.sharedService.callData(); + } + }).catch(); + } + /** * Check any changes in the child component @public */