Lots of refactor with auth guards and functional customer routing
This commit is contained in:
parent
52fbda7157
commit
24037e0454
13 changed files with 143 additions and 1017 deletions
|
@ -37,6 +37,7 @@ export class AccountEditComponent implements OnInit {
|
|||
full_name : ['', [Validators.required]],
|
||||
display_name : ['', [Validators.required]],
|
||||
});
|
||||
this.accountType = localStorage.getItem('usertype');
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
|
@ -59,7 +60,6 @@ export class AccountEditComponent implements OnInit {
|
|||
display_name: result.display_name,
|
||||
});
|
||||
this.api.setUserInfo( result.email, result.display_name );
|
||||
this.accountType = ( result.name == null ? 'customer' : 'organisation' );
|
||||
},
|
||||
error => {
|
||||
console.log( error._body );
|
||||
|
|
Reference in a new issue