X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fapp%2Futilities%2Fprojects-action%2FProjectsActionComponent.ts;h=4f9738f47337ee4bfe0b180f54d92000e242ee49;hb=HEAD;hp=4ac0051e247ed790383be0c128bd932b0f6fd42b;hpb=3b4814aa2d3dec621dadb52f058ba95a3dc3a86a;p=osm%2FNG-UI.git diff --git a/src/app/utilities/projects-action/ProjectsActionComponent.ts b/src/app/utilities/projects-action/ProjectsActionComponent.ts index 4ac0051..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 { - const modalRef: NgbModalRef = this.modalService.open(ProjectCreateUpdateComponent, { backdrop: 'static' }); + // 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 + }); } }