X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Futilities%2Fwim-accounts-action%2FWIMAccountsActionComponent.ts;h=d5f3ebdff2d6c77a06ae9469231d059ff47504cb;hb=0a34dfa32165036b380ec6ac493469b34007df0a;hp=0769863d70334d5f452290aa33eb52bf3c53896d;hpb=40cc37ef2bbc4aac5debc9dea0baeb6dbd87a2d7;p=osm%2FNG-UI.git diff --git a/src/app/utilities/wim-accounts-action/WIMAccountsActionComponent.ts b/src/app/utilities/wim-accounts-action/WIMAccountsActionComponent.ts index 0769863..d5f3ebd 100644 --- a/src/app/utilities/wim-accounts-action/WIMAccountsActionComponent.ts +++ b/src/app/utilities/wim-accounts-action/WIMAccountsActionComponent.ts @@ -65,6 +65,7 @@ export class WIMAccountsActionComponent { /** Show WIM account information @public */ public showWIMAccountInfo(): void { + // eslint-disable-next-line security/detect-non-literal-fs-filename this.modalService.open(WIMAccountInfoComponent, { backdrop: 'static' }).componentInstance.params = { id: this.wimID, page: 'wim-accounts' @@ -73,11 +74,14 @@ export class WIMAccountsActionComponent { /** Delete WIM Account @public */ public deleteWIMAccount(): 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 + }); } }