[header] show anon image if user did not set a picture (to improve later)

This commit is contained in:
nymkappa
2023-08-21 17:04:17 +02:00
parent 285485c69e
commit 0ee28a335f
5 changed files with 37 additions and 6 deletions

View File

@@ -362,6 +362,17 @@ export class ApiService {
});
}
getUserInfo$(): Observable<any> {
const auth = this.storageService.getAuth();
if (!auth) {
return of(null);
}
return this.httpClient.get<any>(`${SERVICES_API_PREFIX}/account`, {
headers: { 'Authorization': auth.token }
});
}
logout$(): Observable<any> {
const auth = this.storageService.getAuth();
if (!auth) {