|
|
@ -32,13 +32,22 @@ export class UserComponent { |
|
|
constructor( |
|
|
constructor( |
|
|
public usersService: UsersService, |
|
|
public usersService: UsersService, |
|
|
private dialog: MatDialog, |
|
|
private dialog: MatDialog, |
|
|
private route: ActivatedRoute, |
|
|
private activeRoute: ActivatedRoute, |
|
|
) { |
|
|
) {} |
|
|
this.userId = String(this.route.snapshot.paramMap.get('id')); |
|
|
|
|
|
|
|
|
ngOnInit() { |
|
|
|
|
|
this.userId = String(this.activeRoute.snapshot.paramMap.get('id')); |
|
|
|
|
|
this.usersService.getUserdetails(this.userId).subscribe(data => { |
|
|
|
|
|
this.user = data; |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.activeRoute.params.subscribe(routeParams => { |
|
|
|
|
|
this.userId = routeParams['id']; |
|
|
this.usersService.getUserdetails(this.userId).subscribe(data => { |
|
|
this.usersService.getUserdetails(this.userId).subscribe(data => { |
|
|
this.user = data; |
|
|
this.user = data; |
|
|
}); |
|
|
}); |
|
|
} |
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
openClaimRacerDialog() |
|
|
openClaimRacerDialog() |
|
|
{ |
|
|
{ |
|
|
|