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
+1
View File
@@ -67,6 +67,7 @@ export class I18nService {
}
getInternal(key, args: string[], from): string {
key += '';
if(!from) {
return key;
} else if(from[key]) {
+30
View File
@@ -0,0 +1,30 @@
import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {environment} from '../../environments/environment';
@Injectable({
providedIn: 'root',
})
export class UserAliasService {
constructor(private http: HttpClient) {
}
get() {
return this.http.get(environment.apiUrl + "/users/aliases");
}
create(alias) {
return this.http.post(environment.apiUrl + "/users/aliases", alias);
}
update(alias) {
return this.http.patch(environment.apiUrl + "/users/aliases", alias);
}
delete(id) {
return this.http.delete(environment.apiUrl + "/users/aliases/" + id);
}
}