[ARVADOS-WORKBENCH2] updated: 1.3.1-448-g83d8d99c
Git user
git at public.curoverse.com
Mon May 13 13:12:25 UTC 2019
Summary of changes:
src/store/projects/project-move-actions.ts | 5 +++++
1 file changed, 5 insertions(+)
via 83d8d99ceb0aea03e432530c7a8baef247cc4ce1 (commit)
from c93fca2c9be41ca963a0271dd373cc1a40cba196 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 83d8d99ceb0aea03e432530c7a8baef247cc4ce1
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date: Mon May 13 15:12:07 2019 +0200
refs #14915-after-move-to-action-inside-tree-panel-the-tree-is-not-refreshed
Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
diff --git a/src/store/projects/project-move-actions.ts b/src/store/projects/project-move-actions.ts
index 365e07aa..8876be0f 100644
--- a/src/store/projects/project-move-actions.ts
+++ b/src/store/projects/project-move-actions.ts
@@ -11,6 +11,8 @@ import { getCommonResourceServiceError, CommonResourceServiceError } from "~/ser
import { MoveToFormDialogData } from '~/store/move-to-dialog/move-to-dialog';
import { resetPickerProjectTree } from '~/store/project-tree-picker/project-tree-picker-actions';
import { initProjectsTreePicker } from '~/store/tree-picker/tree-picker-actions';
+import { projectPanelActions } from '~/store/project-panel/project-panel-action';
+import { loadSidePanelTreeProjects } from '../side-panel-tree/side-panel-tree-actions';
export const PROJECT_MOVE_FORM_NAME = 'projectMoveFormName';
@@ -24,11 +26,14 @@ export const openMoveProjectDialog = (resource: { name: string, uuid: string })
export const moveProject = (resource: MoveToFormDialogData) =>
async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
+ const userUuid = getState().auth.user!.uuid;
dispatch(startSubmit(PROJECT_MOVE_FORM_NAME));
try {
const project = await services.projectService.get(resource.uuid);
const newProject = await services.projectService.update(resource.uuid, { ...project, ownerUuid: resource.ownerUuid });
+ dispatch(projectPanelActions.REQUEST_ITEMS());
dispatch(dialogActions.CLOSE_DIALOG({ id: PROJECT_MOVE_FORM_NAME }));
+ await dispatch<any>(loadSidePanelTreeProjects(userUuid));
return newProject;
} catch (e) {
const error = getCommonResourceServiceError(e);
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list