X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9320734bb358e7148918da13e81ebba59ecf16e8..416d4f0f57336b2225bcc82b0f4db8873adf8cd2:/src/views-components/context-menu/action-sets/root-project-action-set.ts 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 53642d03fb..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 @@ -3,13 +3,23 @@ // SPDX-License-Identifier: AGPL-3.0 import { ContextMenuActionSet } from "../context-menu-action-set"; -import actions from "../../../store/project/project-action"; -import { IconTypes } from "../../../components/icon/icon"; +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: IconTypes.FOLDER, - name: "New project", - execute: (dispatch, resource) => { - dispatch(actions.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)); + } } -}]]; \ No newline at end of file +]];