profile improvements, aliases feature
This commit is contained in:
@@ -11,20 +11,19 @@ import {ProfileService} from '../../services/profile.service';
|
||||
export class UserComponent implements OnInit {
|
||||
|
||||
username;
|
||||
profileFields = [];
|
||||
model: any;
|
||||
error = false;
|
||||
success = false;
|
||||
|
||||
constructor(
|
||||
private profileService: ProfileService,
|
||||
private router: Router,
|
||||
private route: ActivatedRoute) {}
|
||||
|
||||
async ngOnInit() {
|
||||
this.username = this.route.snapshot.paramMap.get('username');
|
||||
this.profileService.getAllForUser(this.username).subscribe((data: any) => {
|
||||
this.profileFields = data;
|
||||
this.success = true;
|
||||
this.model = data;
|
||||
}, error => {
|
||||
this.error = error;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user