X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/e6039bec0497aa7e1391958e5c4f84bbaeef653e..6a6fea74799f8fc473578978499f66171f5b6ab3:/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 53642d03..386c5162 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 +]];