mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-8433] ACA: User Profile Service (#3957)
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user