X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Futilities%2Fprojects-action%2FProjectsActionComponent.ts;h=4f9738f47337ee4bfe0b180f54d92000e242ee49;hb=382448fed3f9d4d4cf9ac614e1275208d18b752f;hp=207d90c7f3ce59f4a9bc2b75b0670ff7eb44b268;hpb=2e02e7d676dc5a87e2d68437f30b6e41037ea7a4;p=osm%2FNG-UI.git diff --git a/src/app/utilities/projects-action/ProjectsActionComponent.ts b/src/app/utilities/projects-action/ProjectsActionComponent.ts index 207d90c..4f9738f 100644 --- a/src/app/utilities/projects-action/ProjectsActionComponent.ts +++ b/src/app/utilities/projects-action/ProjectsActionComponent.ts @@ -57,22 +57,28 @@ export class ProjectsActionComponent { /** Delete project @public */ public projectDelete(): 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 + }); } /** Edit project @public */ public projectEdit(): void { + // eslint-disable-next-line security/detect-non-literal-fs-filename const modalRef: NgbModalRef = this.modalService.open(ProjectCreateUpdateComponent, { size: 'lg', backdrop: 'static' }); modalRef.componentInstance.projectType = 'Edit'; modalRef.result.then((result: MODALCLOSERESPONSEDATA) => { if (result) { this.sharedService.callData(); } - }).catch(); + }).catch((): void => { + // Catch Navigation Error + }); } }