mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-2471] - close preview action (#1129)
This commit is contained in:
@@ -29,7 +29,8 @@ import { MinimalNodeEntity } from '@alfresco/js-api';
|
||||
export enum ViewerActionTypes {
|
||||
ViewFile = 'VIEW_FILE',
|
||||
ViewNode = 'VIEW_NODE',
|
||||
FullScreen = 'FULLSCREEN_VIEWER'
|
||||
FullScreen = 'FULLSCREEN_VIEWER',
|
||||
ClosePreview = 'CLOSE_PREVIEW'
|
||||
}
|
||||
|
||||
export class ViewFileAction implements Action {
|
||||
@@ -49,3 +50,8 @@ export class FullscreenViewerAction implements Action {
|
||||
|
||||
constructor(public payload: MinimalNodeEntity) {}
|
||||
}
|
||||
|
||||
export class ClosePreviewAction implements Action {
|
||||
readonly type = ViewerActionTypes.ClosePreview;
|
||||
constructor(public payload?: MinimalNodeEntity) {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user