mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-4365] Expanded info drawer for permissions, properties and comments (#2080)
* [ACA-4365] Expanded info drawer for permissions, properties and comments * Add unit tests for details component * Fix linting * Fix e2e tests * Fix e2e tests * Change to Progress Bar * Add unit test for node effects * Fix unit test * Standardize styles info drawer * Remove permissions tab * Updadte ADF dependencies * Update permissions icon * Improve navigation * Fix linting
This commit is contained in:
@@ -46,7 +46,8 @@ export enum NodeActionTypes {
|
||||
UnlockForWriting = 'UNLOCK_WRITE_LOCK',
|
||||
AddFavorite = 'ADD_FAVORITE',
|
||||
RemoveFavorite = 'REMOVE_FAVORITE',
|
||||
ChangeAspects = 'ASPECT_LIST'
|
||||
ChangeAspects = 'ASPECT_LIST',
|
||||
ExpandInfoDrawer = 'EXPAND_INFO_DRAWER'
|
||||
}
|
||||
|
||||
export class SetSelectedNodesAction implements Action {
|
||||
@@ -126,6 +127,11 @@ export class ManagePermissionsAction implements Action {
|
||||
|
||||
constructor(public payload: MinimalNodeEntity) {}
|
||||
}
|
||||
export class ExpandInfoDrawerAction implements Action {
|
||||
readonly type = NodeActionTypes.ExpandInfoDrawer;
|
||||
|
||||
constructor(public payload: MinimalNodeEntity) {}
|
||||
}
|
||||
|
||||
export class PrintFileAction implements Action {
|
||||
readonly type = NodeActionTypes.PrintFile;
|
||||
|
@@ -30,7 +30,8 @@ export enum RouterActionTypes {
|
||||
NavigateUrl = 'NAVIGATE_URL',
|
||||
NavigateRoute = 'NAVIGATE_ROUTE',
|
||||
NavigateFolder = 'NAVIGATE_FOLDER',
|
||||
NavigateParentFolder = 'NAVIGATE_PARENT_FOLDER'
|
||||
NavigateParentFolder = 'NAVIGATE_PARENT_FOLDER',
|
||||
NavigateToPreviousPage = 'NAVIGATE_TO_PREVIOUS_PAGE'
|
||||
}
|
||||
|
||||
export class NavigateUrlAction implements Action {
|
||||
@@ -56,3 +57,9 @@ export class NavigateToParentFolder implements Action {
|
||||
|
||||
constructor(public payload: MinimalNodeEntity) {}
|
||||
}
|
||||
|
||||
export class NavigateToPreviousPage implements Action {
|
||||
readonly type = RouterActionTypes.NavigateToPreviousPage;
|
||||
|
||||
constructor() {}
|
||||
}
|
||||
|
@@ -30,12 +30,20 @@ import { MinimalNodeEntryEntity, PathInfoEntity } from '@alfresco/js-api';
|
||||
import { map } from 'rxjs/operators';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { AppStore } from '../states/app.state';
|
||||
import { NavigateUrlAction, RouterActionTypes, NavigateRouteAction, NavigateToFolder, NavigateToParentFolder } from '../actions/router.actions';
|
||||
import { Location } from '@angular/common';
|
||||
import {
|
||||
NavigateUrlAction,
|
||||
RouterActionTypes,
|
||||
NavigateRouteAction,
|
||||
NavigateToFolder,
|
||||
NavigateToParentFolder,
|
||||
NavigateToPreviousPage
|
||||
} from '../actions/router.actions';
|
||||
import { SnackbarErrorAction } from '../actions/snackbar.actions';
|
||||
|
||||
@Injectable()
|
||||
export class RouterEffects {
|
||||
constructor(private store: Store<AppStore>, private actions$: Actions, private router: Router) {}
|
||||
constructor(private store: Store<AppStore>, private actions$: Actions, private router: Router, private location: Location) {}
|
||||
|
||||
@Effect({ dispatch: false })
|
||||
navigateUrl$ = this.actions$.pipe(
|
||||
@@ -75,6 +83,12 @@ export class RouterEffects {
|
||||
})
|
||||
);
|
||||
|
||||
@Effect({ dispatch: false })
|
||||
navigateToPreviousPage$ = this.actions$.pipe(
|
||||
ofType<NavigateToPreviousPage>(RouterActionTypes.NavigateToPreviousPage),
|
||||
map(() => this.location.back())
|
||||
);
|
||||
|
||||
private navigateToFolder(node: MinimalNodeEntryEntity) {
|
||||
let link: any[] = null;
|
||||
const { path, id } = node;
|
||||
|
Reference in New Issue
Block a user