projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force window resize after open/close details panel because of material-ui issue
[arvados.git]
/
src
/
views-components
/
context-menu
/
action-sets
/
root-project-action-set.ts
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 2c71abc41ed6b88cd0fa5094ccf807e38e148c13..386c5162f3c6ab9858c55f9b25468acbd98b353c 100644
(file)
--- 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
//
// SPDX-License-Identifier: AGPL-3.0
-import { reset } from "redux-form";
-
import { ContextMenuActionSet } from "../context-menu-action-set";
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 { openCollectionCreateDialog } from '~/store/collections/collection-create-actions';
import { NewProjectIcon, CollectionIcon } from "~/components/icon/icon";
import { NewProjectIcon, CollectionIcon } from "~/components/icon/icon";
-import {
PROJECT_CREATE_FORM_NAME,
openProjectCreateDialog } from '~/store/projects/project-create-actions';
+import { openProjectCreateDialog } from '~/store/projects/project-create-actions';
export const rootProjectActionSet: ContextMenuActionSet = [[
{
icon: NewProjectIcon,
name: "New project",
execute: (dispatch, resource) => {
export const rootProjectActionSet: ContextMenuActionSet = [[
{
icon: NewProjectIcon,
name: "New project",
execute: (dispatch, resource) => {
- dispatch(reset(PROJECT_CREATE_FORM_NAME));
dispatch<any>(openProjectCreateDialog(resource.uuid));
}
},
dispatch<any>(openProjectCreateDialog(resource.uuid));
}
},
@@
-23,7
+19,6
@@
export const rootProjectActionSet: ContextMenuActionSet = [[
icon: CollectionIcon,
name: "New Collection",
execute: (dispatch, resource) => {
icon: CollectionIcon,
name: "New Collection",
execute: (dispatch, resource) => {
- dispatch(reset(COLLECTION_CREATE_FORM_NAME));
dispatch<any>(openCollectionCreateDialog(resource.uuid));
}
}
dispatch<any>(openCollectionCreateDialog(resource.uuid));
}
}