store locale + theme in profile, add theme switch

This commit is contained in:
_Bastler
2021-04-03 13:38:25 +02:00
parent 40ade2ca06
commit 288bdb3956
6 changed files with 82 additions and 13 deletions
@@ -32,11 +32,11 @@ export class ProfileFieldsComponent implements OnInit {
update() {
if(this.username) {
this.profileService.getAllForUser(this.username).subscribe((data: any) => {
this.profileService.getForUser(this.username).subscribe((data: any) => {
this.profileFields = data.profileFields;
})
} else {
this.profileService.getAll().subscribe((data: any) => {
this.profileService.get().subscribe((data: any) => {
this.profileFields = data;
})
}