mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
[ACS-8433] ACA: User Profile Service (#3957)
This commit is contained in:
@@ -28,9 +28,7 @@ import { CommonModule } from '@angular/common';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { ToolbarMenuItemComponent } from '@alfresco/aca-shared';
|
||||
import { AppStore, getUserProfile } from '@alfresco/aca-shared/store';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { ToolbarMenuItemComponent, UserProfileService } from '@alfresco/aca-shared';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
@@ -42,8 +40,9 @@ import { Store } from '@ngrx/store';
|
||||
host: { class: 'aca-user-menu' }
|
||||
})
|
||||
export class UserMenuComponent implements OnInit {
|
||||
private store = inject<Store<AppStore>>(Store<AppStore>);
|
||||
user$ = this.store.select(getUserProfile);
|
||||
private userProfileService = inject(UserProfileService);
|
||||
|
||||
user$ = this.userProfileService.userProfile$;
|
||||
|
||||
@Input()
|
||||
actionRef: ContentActionRef;
|
||||
|
Reference in New Issue
Block a user