projects
/
osm
/
NG-UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Bug 2291: No option to update VIM Account in NG-UI
[osm/NG-UI.git]
/
src
/
app
/
utilities
/
vim-accounts-action
/
VimAccountsActionComponent.ts
diff --git
a/src/app/utilities/vim-accounts-action/VimAccountsActionComponent.ts
b/src/app/utilities/vim-accounts-action/VimAccountsActionComponent.ts
index
e3657ad
..
14862eb
100644
(file)
--- a/
src/app/utilities/vim-accounts-action/VimAccountsActionComponent.ts
+++ b/
src/app/utilities/vim-accounts-action/VimAccountsActionComponent.ts
@@
-46,7
+46,7
@@
export class VimAccountsActionComponent implements OnInit {
public injector: Injector;
/** To show Instances running @public */
public injector: Injector;
/** To show Instances running @public */
- public showMapIcon: boolean =
false;
+ public showMapIcon: boolean = false;
/** To show Details Instances running @public */
public showInstanceDetails: {}[];
/** To show Details Instances running @public */
public showInstanceDetails: {}[];
@@
-77,7
+77,7
@@
export class VimAccountsActionComponent implements OnInit {
/** Delete VIM Account @public */
public deleteVIMAccount(): void {
// eslint-disable-next-line security/detect-non-literal-fs-filename
/** Delete VIM Account @public */
public deleteVIMAccount(): void {
// eslint-disable-next-line security/detect-non-literal-fs-filename
- const modalRef: NgbModalRef = this.modalService.open(DeleteComponent, {
backdrop: 'static'
});
+ const modalRef: NgbModalRef = this.modalService.open(DeleteComponent, {
backdrop: 'static'
});
modalRef.result.then((result: MODALCLOSERESPONSEDATA) => {
if (result) {
this.sharedService.callData();
modalRef.result.then((result: MODALCLOSERESPONSEDATA) => {
if (result) {
this.sharedService.callData();
@@
-92,7
+92,7
@@
export class VimAccountsActionComponent implements OnInit {
this.vimID = this.value.identifier;
this.router.navigate(['/vim/info', this.vimID]).catch(() => {
// Catch Navigation Error
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 */
}
/** To show the Instances Info for the particular VimAccount @public */
@@
-109,7
+109,15
@@
export class VimAccountsActionComponent implements OnInit {
/** Show VIM Resources Data @public */
public showVIMResources(vimDetails: VimAccountDetails): void {
// eslint-disable-next-line security/detect-non-literal-fs-filename
/** Show VIM Resources Data @public */
public showVIMResources(vimDetails: VimAccountDetails): void {
// eslint-disable-next-line security/detect-non-literal-fs-filename
- const modalRef: NgbModalRef = this.modalService.open(ResourcesOverviewComponent, {
backdrop: 'static'
});
+ const modalRef: NgbModalRef = this.modalService.open(ResourcesOverviewComponent, {
backdrop: 'static'
});
modalRef.componentInstance.resourcesData = vimDetails;
}
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
+ });
+ }
}
}