1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
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';
9 export const FILE_SELECTION = 'fileSelection';
11 export const openFileSelectionDialog = () =>
12 (dispatch: Dispatch) => {
13 dispatch<any>(resetPickerProjectTree());
14 dispatch(dialogActions.OPEN_DIALOG({ id: FILE_SELECTION, data: {} }));