store locale + theme in profile, add theme switch
This commit is contained in:
@@ -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;
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user