1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { reset } from "redux-form";
7 import { ContextMenuActionSet } from "../context-menu-action-set";
8 import { openProjectCreator } from "~/store/project/project-action";
9 import { collectionCreateActions } from "~/store/collections/creator/collection-creator-action";
10 import { COLLECTION_CREATE_DIALOG } from "../../dialog-create/dialog-collection-create";
11 import { NewProjectIcon, CollectionIcon } from "~/components/icon/icon";
13 export const rootProjectActionSet: ContextMenuActionSet = [[
17 execute: (dispatch, resource) => dispatch<any>(openProjectCreator(resource.uuid))
21 name: "New Collection",
22 execute: (dispatch, resource) => {
23 dispatch(reset(COLLECTION_CREATE_DIALOG));
24 dispatch(collectionCreateActions.OPEN_COLLECTION_CREATOR({ ownerUuid: resource.uuid }));