X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Futilities%2Fns-update%2FNsUpdateComponent.ts;h=80773e2319d8d797c8f945ccf94ead1fc5b184d7;hb=41c8a2c2ac959edd93815d30d121737517c868de;hp=80ddbb4d902e5666a1d36f94e54ee48f08a4ee7d;hpb=797d9f3e02def5b00e4bbbf1190cfc6004e5655e;p=osm%2FNG-UI.git diff --git a/src/app/utilities/ns-update/NsUpdateComponent.ts b/src/app/utilities/ns-update/NsUpdateComponent.ts index 80ddbb4..80773e2 100644 --- a/src/app/utilities/ns-update/NsUpdateComponent.ts +++ b/src/app/utilities/ns-update/NsUpdateComponent.ts @@ -68,6 +68,8 @@ export class NsUpdateComponent implements OnInit { public vnfdIdShow: boolean = false; /** Contains MemberVNFIndex values @public */ public memberVnfIndex: {}[] = []; + /** Contains MemberVNFIndex content @public */ + public selectedVnf: {}[]; /** Array holds VNFR Data filtered with nsr ID @public */ public nsIdFilteredData: {}[] = []; /** Contains vnfdId value @public */ @@ -188,6 +190,7 @@ export class NsUpdateComponent implements OnInit { vnfdData[memberIndex] === this.memberIndexValue); const vnfId: string = 'VNFID'; const selectedvnfId: string = 'VNFD'; + this.selectedVnf = memberIndexFilteredData; for (const data of memberIndexFilteredData) { this.vnfID = data[vnfId]; this.selectedvnfId = data[selectedvnfId]; @@ -243,7 +246,8 @@ export class NsUpdateComponent implements OnInit { if (result.message === CONFIGCONSTANT.done) { this.onSubmit(); } - }).catch(); + }).catch((): void => { //empty + }); } this.isLoadingResults = false; } @@ -274,14 +278,16 @@ export class NsUpdateComponent implements OnInit { } if (this.version === this.vnfversion) { const modalRef: NgbModalRef = this.modalService.open(WarningComponent, { backdrop: 'static' }); - modalRef.componentInstance.heading = this.translateService.instant('UPDATEPOLICIES'); - modalRef.componentInstance.confirmationMessage = this.translateService.instant('UPDATEPOLICIESCONTENT'); - modalRef.componentInstance.submitMessage = this.translateService.instant('UPDATEPOLICIES'); + modalRef.componentInstance.heading = this.translateService.instant('UPDATENS'); + modalRef.componentInstance.confirmationMessage = this.translateService.instant('GENERICCONTENT'); + modalRef.componentInstance.submitMessage = this.translateService.instant('UPDATENS'); modalRef.result.then((result: MODALCLOSERESPONSEDATA): void => { if (result.message === CONFIGCONSTANT.done) { this.onSubmit(); } - }).catch(); + }).catch((): void => { //empty + } + ); } else { const modalRef: NgbModalRef = this.modalService.open(WarningComponent, { backdrop: 'static' }); modalRef.componentInstance.heading = this.translateService.instant('REDEPLOY'); @@ -291,7 +297,8 @@ export class NsUpdateComponent implements OnInit { if (result.message === CONFIGCONSTANT.done) { this.onSubmit(); } - }).catch(); + }).catch((): void => { //empty + }); } }, (error: ERRORDATA): void => { this.restService.handleError(error, 'get');