X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/22b7bf88fb799c912a813790301f715fb6b8ccf0..416d4f0f57336b2225bcc82b0f4db8873adf8cd2:/src/views-components/context-menu/action-sets/root-project-action-set.ts?ds=sidebyside diff --git a/src/views-components/context-menu/action-sets/root-project-action-set.ts b/src/views-components/context-menu/action-sets/root-project-action-set.ts index 8c57f47fa3..9cf5bf031a 100644 --- a/src/views-components/context-menu/action-sets/root-project-action-set.ts +++ b/src/views-components/context-menu/action-sets/root-project-action-set.ts @@ -2,18 +2,24 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { reset } from "redux-form"; - import { ContextMenuActionSet } from "../context-menu-action-set"; -import { projectActions } from "../../../store/project/project-action"; -import { NewProjectIcon } from "../../../components/icon/icon"; -import { PROJECT_CREATE_DIALOG } from "../../dialog-create/dialog-project-create"; +import { openCollectionCreateDialog } from 'store/collections/collection-create-actions'; +import { NewProjectIcon, CollectionIcon } from "components/icon/icon"; +import { openProjectCreateDialog } from 'store/projects/project-create-actions'; -export const rootProjectActionSet: ContextMenuActionSet = [[{ - icon: NewProjectIcon, - name: "New project", - execute: (dispatch, resource) => { - dispatch(reset(PROJECT_CREATE_DIALOG)); - dispatch(projectActions.OPEN_PROJECT_CREATOR({ ownerUuid: resource.uuid })); +export const rootProjectActionSet: ContextMenuActionSet = [[ + { + icon: NewProjectIcon, + name: "New project", + execute: (dispatch, resource) => { + dispatch(openProjectCreateDialog(resource.uuid)); + } + }, + { + icon: CollectionIcon, + name: "New Collection", + execute: (dispatch, resource) => { + dispatch(openCollectionCreateDialog(resource.uuid)); + } } -}]]; +]];