X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/59ee572e791985a36bdd2015c9b494145109e8ed..a2783c48c8210410de72bd17a32ab72d0f364cde:/src/store/projects/project-move-actions.ts diff --git a/src/store/projects/project-move-actions.ts b/src/store/projects/project-move-actions.ts index c251bdf8..9405597b 100644 --- a/src/store/projects/project-move-actions.ts +++ b/src/store/projects/project-move-actions.ts @@ -10,12 +10,14 @@ import { RootState } from '~/store/store'; import { getCommonResourceServiceError, CommonResourceServiceError } from "~/services/common-service/common-resource-service"; import { MoveToFormDialogData } from '~/store/move-to-dialog/move-to-dialog'; import { resetPickerProjectTree } from '~/store/project-tree-picker/project-tree-picker-actions'; +import { initProjectsTreePicker } from '../tree-picker/tree-picker-actions'; export const PROJECT_MOVE_FORM_NAME = 'projectMoveFormName'; export const openMoveProjectDialog = (resource: { name: string, uuid: string }) => (dispatch: Dispatch) => { dispatch(resetPickerProjectTree()); + dispatch(initProjectsTreePicker(PROJECT_MOVE_FORM_NAME)); dispatch(initialize(PROJECT_MOVE_FORM_NAME, resource)); dispatch(dialogActions.OPEN_DIALOG({ id: PROJECT_MOVE_FORM_NAME, data: {} })); };