feat(system): view, edit, delete code (#380)

- Add view code component
- Add edit code component

Fixes: #379
This commit is contained in:
Chirag Gupta
2019-05-21 20:19:41 +05:30
committed by Abhay Chawla
parent fbb7a1583a
commit e766a91ecf
16 changed files with 625 additions and 3 deletions
@@ -45,12 +45,12 @@ export class CreateCodeComponent implements OnInit {
/**
* Submits the code form and creates a code,
* if successful redirects to view code.
* if successful redirects to view created code.
*/
submit() {
this.systemService.createCode(this.codeForm.value)
.subscribe((response: any) => {
this.router.navigate(['/system/codes'], { relativeTo: this.route });
this.router.navigate(['../', response.resourceId], { relativeTo: this.route });
});
}