21128: fixed multitrash icon Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox...
[arvados.git] / src / store / file-selection / file-selection-actions.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { Dispatch } from "redux";
6 import { dialogActions } from "store/dialog/dialog-actions";
7 import { resetPickerProjectTree } from 'store/project-tree-picker/project-tree-picker-actions';
8
9 export const FILE_SELECTION = 'fileSelection';
10
11 export const openFileSelectionDialog = () =>
12     (dispatch: Dispatch) => {
13         dispatch<any>(resetPickerProjectTree());
14         dispatch(dialogActions.OPEN_DIALOG({ id: FILE_SELECTION, data: {} }));
15     };