X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d048e918a6899aac404179690730d29ce26c606a..6653b7a7edbac351f5b3734114d6b5904dda1acc:/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 312b041580..6df8269928 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 })); }