X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/d048e918a6899aac404179690730d29ce26c606a..546052817ac18623f5389914a3077e8cc6a3d4f4:/src/store/processes/process-move-actions.ts diff --git a/src/store/processes/process-move-actions.ts b/src/store/processes/process-move-actions.ts index 312b0415..6df82699 100644 --- a/src/store/processes/process-move-actions.ts +++ b/src/store/processes/process-move-actions.ts @@ -41,7 +41,6 @@ export const moveProcess = (resource: MoveToFormDialogData) => await services.containerRequestService.update(resource.uuid, { ...process, ownerUuid: resource.ownerUuid }); dispatch(projectPanelActions.REQUEST_ITEMS()); dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_MOVE_FORM_NAME })); - dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Process has been moved', hideDuration: 2000 })); return process; } catch (e) { const error = getCommonResourceServiceError(e); @@ -49,8 +48,7 @@ export const moveProcess = (resource: MoveToFormDialogData) => dispatch(stopSubmit(PROCESS_MOVE_FORM_NAME, { ownerUuid: 'A process with the same name already exists in the target project.' })); } else if (error === CommonResourceServiceError.MODIFYING_CONTAINER_REQUEST_FINAL_STATE) { dispatch(stopSubmit(PROCESS_MOVE_FORM_NAME, { ownerUuid: 'You can move only draft processes.' })); - } - else { + } else { dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_MOVE_FORM_NAME })); dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Could not move the process.', hideDuration: 2000 })); }