1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContextMenuItemGroup } from "../../components/context-menu/context-menu";
6 import { ContextMenuItemSet } from "./context-menu-item-set";
7 import actions from "../../store/project/project-action";
9 export const projectItemSet: ContextMenuItemSet = {
10 getItems: () => items,
11 handleItem: (dispatch, item, resource) => {
12 if (item.name === "New project") {
13 dispatch(actions.OPEN_PROJECT_CREATOR({ ownerUuid: resource.uuid }));
18 const items: ContextMenuItemGroup[] = [[{
19 icon: "fas fa-plus fa-fw",
22 icon: "fas fa-users fa-fw",
25 icon: "fas fa-sign-out-alt fa-fw",
28 icon: "fas fa-star fa-fw",
29 name: "Add to favourite"
31 icon: "fas fa-edit fa-fw",
34 icon: "fas fa-copy fa-fw",
37 icon: "fas fa-download fa-fw",
40 icon: "fas fa-trash-alt fa-fw",