public injector: Injector;
/** To show Instances running @public */
- public showMapIcon: boolean = false;
+ public showMapIcon: boolean = false;
/** To show Details Instances running @public */
public showInstanceDetails: {}[];
/** Delete VIM Account @public */
public deleteVIMAccount(): void {
- const modalRef: NgbModalRef = this.modalService.open(DeleteComponent, {backdrop: 'static'});
+ // 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
+ });
}
/** On navigate to Info VimAccount @public */
this.vimID = this.value.identifier;
this.router.navigate(['/vim/info', this.vimID]).catch(() => {
// Catch Navigation Error
- });
+ });
}
/** To show the Instances Info for the particular VimAccount @public */
/** Show VIM Resources Data @public */
public showVIMResources(vimDetails: VimAccountDetails): void {
- const modalRef: NgbModalRef = this.modalService.open(ResourcesOverviewComponent, {backdrop: 'static'});
+ // eslint-disable-next-line security/detect-non-literal-fs-filename
+ const modalRef: NgbModalRef = this.modalService.open(ResourcesOverviewComponent, { backdrop: 'static' });
modalRef.componentInstance.resourcesData = vimDetails;
}
+
+ /** On navigate to edit VimAccount @public */
+ public editVIM(): void {
+ this.vimID = this.value.identifier;
+ this.router.navigate(['/vim/edit', this.vimID]).catch(() => {
+ // Catch Navigation Error
+ });
+ }
}