[ACS-8433] ACA: User Profile Service (#3957)

This commit is contained in:
Denys Vuika
2024-07-22 10:07:43 -04:00
committed by GitHub
parent f23f5edd08
commit b5568d43fa
15 changed files with 183 additions and 153 deletions

View File

@@ -27,8 +27,7 @@ import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { MatMenuModule } from '@angular/material/menu';
import { TranslateModule } from '@ngx-translate/core';
import { AppStore, getUserProfile } from '@alfresco/aca-shared/store';
import { Store } from '@ngrx/store';
import { UserProfileService } from '@alfresco/aca-shared';
@Component({
standalone: true,
@@ -39,6 +38,7 @@ import { Store } from '@ngrx/store';
encapsulation: ViewEncapsulation.None
})
export class UserInfoComponent {
private store = inject<Store<AppStore>>(Store<AppStore>);
user$ = this.store.select(getUserProfile);
private userProfileService = inject(UserProfileService);
user$ = this.userProfileService.userProfile$;
}