[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

@@ -23,8 +23,9 @@
*/
import { Action } from '@ngrx/store';
import { Node, Person, Group, RepositoryInfo, VersionEntry } from '@alfresco/js-api';
import { Node, RepositoryInfo, VersionEntry } from '@alfresco/js-api';
import { AppActionTypes } from './app-action-types';
import { ProfileState } from '@alfresco/adf-extensions';
export class SetCurrentFolderAction implements Action {
readonly type = AppActionTypes.SetCurrentFolder;
@@ -47,7 +48,7 @@ export class SetCurrentUrlAction implements Action {
export class SetUserProfileAction implements Action {
readonly type = AppActionTypes.SetUserProfile;
constructor(public payload: { person: Person; groups: Group[] }) {}
constructor(public payload: ProfileState) {}
}
export class ToggleInfoDrawerAction implements Action {

View File

@@ -28,6 +28,7 @@ import { createSelector } from '@ngrx/store';
const HXI_CONNECTOR = 'alfresco-hxinsight-connector-prediction-applier-extension';
export const selectApp = (state: AppStore) => state.app;
/** @deprecated use `UserProfileService` instead */
export const getUserProfile = createSelector(selectApp, (state) => state.user);
export const getCurrentFolder = createSelector(selectApp, (state) => state.navigation.currentFolder);
export const getCurrentVersion = createSelector(selectApp, (state) => state.currentNodeVersion);