1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContextMenuActionSet } from "../context-menu-action-set";
6 import { projectActions } from "../../../store/project/project-action";
7 import { NewProjectIcon } from "../../../components/icon/icon";
8 import { ToggleFavoriteAction } from "./favorite-action";
9 import { toggleFavorite } from "../../../store/favorites/favorites-actions";
11 export const projectActionSet: ContextMenuActionSet = [[{
14 execute: (dispatch, resource) => {
15 dispatch(projectActions.OPEN_PROJECT_CREATOR({ ownerUuid: resource.uuid }));
18 component: ToggleFavoriteAction,
19 execute: (dispatch, resource) => {
20 dispatch<any>(toggleFavorite(resource));