X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/34399d176adae18bd42d70129c0a51f740afeb8e..188fed64a7cfe68460f64a874dba3fd280d5d561:/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 1e8aff5c..365e07aa 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 '~/store/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: {} })); };