X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b4adbf55b9a1950d70e2e44c28efb13eb4d0f077..25216cc7acedc987c26a159f0b640210c0ef101e:/src/views-components/context-menu/action-sets/root-project-action-set.ts?ds=sidebyside 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 2c71abc4..9cf5bf03 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 @@ -2,20 +2,16 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { reset } from "redux-form"; - import { ContextMenuActionSet } from "../context-menu-action-set"; -import { projectActions } from "~/store/project/project-action"; -import { COLLECTION_CREATE_FORM_NAME, openCollectionCreateDialog } from '~/store/collections/collection-create-actions'; -import { NewProjectIcon, CollectionIcon } from "~/components/icon/icon"; -import { PROJECT_CREATE_FORM_NAME, openProjectCreateDialog } from '~/store/projects/project-create-actions'; +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: NewProjectIcon, name: "New project", execute: (dispatch, resource) => { - dispatch(reset(PROJECT_CREATE_FORM_NAME)); dispatch(openProjectCreateDialog(resource.uuid)); } }, @@ -23,7 +19,6 @@ export const rootProjectActionSet: ContextMenuActionSet = [[ icon: CollectionIcon, name: "New Collection", execute: (dispatch, resource) => { - dispatch(reset(COLLECTION_CREATE_FORM_NAME)); dispatch(openCollectionCreateDialog(resource.uuid)); } }