1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { compose } from "redux";
6 import { reduxForm } from 'redux-form';
7 import { withDialog } from "~/store/dialog/with-dialog";
8 import { DialogProjectUpdate } from '~/views-components/dialog-update/dialog-project-update';
9 import { PROJECT_UPDATE_FORM_NAME, ProjectUpdateFormDialogData } from '~/store/projects/project-update-actions';
10 import { updateProject } from '~/store/workbench/workbench-actions';
12 export const UpdateProjectDialog = compose(
13 withDialog(PROJECT_UPDATE_FORM_NAME),
14 reduxForm<ProjectUpdateFormDialogData>({
15 form: PROJECT_UPDATE_FORM_NAME,
16 onSubmit: (data, dispatch) => {
17 dispatch(updateProject(data));
20 )(DialogProjectUpdate);