store locale + theme in profile, add theme switch
This commit is contained in:
@@ -11,16 +11,20 @@ export class ProfileService {
|
||||
constructor(private http: HttpClient) {
|
||||
}
|
||||
|
||||
getAll(filter?: any[]) {
|
||||
get(filter?: any[]) {
|
||||
return this.http.get(environment.apiUrl + "/profiles" + (filter ? "?filter=" + filter.join(",") : ""));
|
||||
}
|
||||
|
||||
getAllForUser(username) {
|
||||
getField(name) {
|
||||
return this.http.get(environment.apiUrl + "/profiles/field/" + name);
|
||||
}
|
||||
|
||||
getForUser(username) {
|
||||
return this.http.get(environment.apiUrl + "/profiles/" + username);
|
||||
}
|
||||
|
||||
getForUser(username, name) {
|
||||
return this.http.get(environment.apiUrl + "/profiles/" + username + "/" + name);
|
||||
getFieldForUser(username, name) {
|
||||
return this.http.get(environment.apiUrl + "/profiles/" + username + "/field/" + name);
|
||||
}
|
||||
|
||||
createOrUpdate(profileModel) {
|
||||
|
||||
Reference in New Issue
Block a user