Add resources widget front-end (#2151)

This commit is contained in:
Pavlo Tkach 2023-09-21 13:59:40 -04:00 committed by GitHub
parent 759143535f
commit dded258864
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 151 additions and 29 deletions

View file

@ -19,6 +19,7 @@ import { SecuritySettingsBackendModel } from 'src/app/settings/security/security
import { Contact } from '../../settings/contact/contact.service';
import { Registrar } from '../../registrar/registrar.service';
import { UserData } from './userData.service';
@Injectable()
export class BackendService {
@ -90,4 +91,10 @@ export class BackendService {
securitySettings
);
}
getUserData(): Observable<UserData> {
return this.http
.get<UserData>(`/console-api/userdata`)
.pipe(catchError((err) => this.errorCatcher<UserData>(err)));
}
}