profile improvements, aliases feature

This commit is contained in:
_Bastler
2021-03-30 15:14:07 +02:00
parent 35411505f8
commit 40ade2ca06
27 changed files with 561 additions and 92 deletions
+2 -3
View File
@@ -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;
})