in angular/src/app/stage/namespace-edit/namespace-edit.component.ts [35:50]
ngOnInit() {
let stageCode = this.activatedRoute.snapshot.params['stage'];
this.entity = {};
this.stageService.list()
.subscribe(
(res: any) => {
let stage = res.find(c => c.code === stageCode);
this.stageCode = stage.code;
this.stageEndpoint = stage.endpoint;
this.formOnInit();
},
(err: any) => {
this.formHelperService.showError('Errors.GenericError', null);
}
);
}