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 { openCollectionCreateDialog } from 'store/collections/collection-create-actions';
7 import { NewProjectIcon, CollectionIcon } from 'components/icon/icon';
8 import { openProjectCreateDialog } from 'store/projects/project-create-actions';
10 export const rootProjectActionSet: ContextMenuActionSet = [
15 execute: (dispatch, resources) => {
16 resources.forEach((resource) => dispatch<any>(openProjectCreateDialog(resource.uuid)));
21 name: 'New Collection',
22 execute: (dispatch, resources) => {
23 resources.forEach((resource) => dispatch<any>(openCollectionCreateDialog(resource.uuid)));