X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Futilities%2Fsdn-controller-action%2FSDNControllerActionComponent.ts;h=01796b864f7d6b36308ae90fa4e4c30a7745da44;hb=0a34dfa32165036b380ec6ac493469b34007df0a;hp=cbf3fc10f6078b67fc77bf292eb5164351d6b40d;hpb=40cc37ef2bbc4aac5debc9dea0baeb6dbd87a2d7;p=osm%2FNG-UI.git diff --git a/src/app/utilities/sdn-controller-action/SDNControllerActionComponent.ts b/src/app/utilities/sdn-controller-action/SDNControllerActionComponent.ts index cbf3fc1..01796b8 100644 --- a/src/app/utilities/sdn-controller-action/SDNControllerActionComponent.ts +++ b/src/app/utilities/sdn-controller-action/SDNControllerActionComponent.ts @@ -65,6 +65,7 @@ export class SDNControllerActionComponent { /** Show SDN Controller Information @public */ public showSDNControllerInfo(): void { + // eslint-disable-next-line security/detect-non-literal-fs-filename this.modalService.open(SDNControllerInfoComponent, { backdrop: 'static' }).componentInstance.params = { id: this.sdnID, page: 'sdn-controller' @@ -73,11 +74,14 @@ export class SDNControllerActionComponent { /** Delete SDN Controller @public */ public deleteSDNController(): 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 + }); } }