X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Futilities%2Fns-instances-action%2FNSInstancesActionComponent.ts;h=74f151829377c11a95ec318c3b1c8e5e1f587408;hb=e478d7eaa9ac0636c14f62450364729519ef8f8e;hp=1582bc4af25541f403e2dab8fd67217cff55de73;hpb=c84f1123f8ba69f9e2211b2d816bb415e595efaa;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 1582bc4..74f1518 100644 --- a/src/app/utilities/ns-instances-action/NSInstancesActionComponent.ts +++ b/src/app/utilities/ns-instances-action/NSInstancesActionComponent.ts @@ -37,7 +37,6 @@ import { ScalingComponent } from 'ScalingComponent'; import { SharedService, isNullOrUndefined } from 'SharedService'; import { ShowInfoComponent } from 'ShowInfoComponent'; import { StartStopRebuildComponent } from 'StartStopRebuildComponent'; -import { VerticalScalingComponent } from 'VerticalScalingComponent'; import { VmMigrationComponent } from 'VmMigrationComponent'; import { DF, VDU, VNFD } from 'VNFDModel'; /** @@ -163,7 +162,12 @@ export class NSInstancesActionComponent { public deleteNSInstance(forceAction: boolean): void { // eslint-disable-next-line security/detect-non-literal-fs-filename const modalRef: NgbModalRef = this.modalService.open(DeleteComponent, { backdrop: 'static' }); - modalRef.componentInstance.params = { forceDeleteType: forceAction }; + modalRef.componentInstance.params = { + forceDeleteType: forceAction, + name: this.value.name, + page: 'ns-instance', + id: this.instanceID + }; modalRef.result.then((result: MODALCLOSERESPONSEDATA): void => { if (result) { this.sharedService.callData(); @@ -344,22 +348,6 @@ export class NSInstancesActionComponent { }); } - /** To open the vertical Scaling pop-up */ - public openVerticalScaling(): void { - // eslint-disable-next-line security/detect-non-literal-fs-filename - 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((): void => { - // Catch Navigation Error - }); - } - /** Open the Healing pop-up @public */ public openHealing(): void { // eslint-disable-next-line security/detect-non-literal-fs-filename