X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fk8s%2Fk8s-action%2FK8sActionComponent.ts;h=f68eff67512c15e13398f37af38777a33575563f;hb=refs%2Fchanges%2F73%2F13273%2F3;hp=a5242773bea12333c8f66764e76d5d49633f3cb0;hpb=40cc37ef2bbc4aac5debc9dea0baeb6dbd87a2d7;p=osm%2FNG-UI.git diff --git a/src/app/k8s/k8s-action/K8sActionComponent.ts b/src/app/k8s/k8s-action/K8sActionComponent.ts index a524277..f68eff6 100644 --- a/src/app/k8s/k8s-action/K8sActionComponent.ts +++ b/src/app/k8s/k8s-action/K8sActionComponent.ts @@ -75,12 +75,15 @@ export class K8sActionComponent{ /** Delete User Account @public */ public deleteK8s(pageType: string): void { + // eslint-disable-next-line security/detect-non-literal-fs-filename const modalRef: NgbModalRef = this.modalService.open(DeleteComponent, { backdrop: 'static' }); modalRef.result.then((result: MODALCLOSERESPONSEDATA) => { if (result) { this.sharedService.callData(); } - }).catch(); + }).catch((): void => { + // Catch Navigation Error + }); } /** Shows information using modalservice @public */ @@ -94,6 +97,7 @@ export class K8sActionComponent{ pageName = 'k8s-cluster'; title = 'PAGE.K8S.K8SCLUSTERDETAILS'; } + // eslint-disable-next-line security/detect-non-literal-fs-filename this.modalService.open(ShowInfoComponent, { backdrop: 'static' }).componentInstance.params = { id: this.instanceID, page: pageName,