[ARVADOS-WORKBENCH2] updated: 1.2.0-321-gd048e91

Git user git at public.curoverse.com
Fri Sep 7 09:56:54 EDT 2018


Summary of changes:
 src/services/common-service/common-resource-service.ts | 2 +-
 src/store/processes/process-move-actions.ts            | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

       via  d048e918a6899aac404179690730d29ce26c606a (commit)
      from  8805314e7327cda30d455d0c05075ee37f3a490e (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 d048e918a6899aac404179690730d29ce26c606a
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date:   Fri Sep 7 15:56:41 2018 +0200

    name changes
    
    Feature #14096
    
    Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>

diff --git a/src/services/common-service/common-resource-service.ts b/src/services/common-service/common-resource-service.ts
index abc856f..09e034f 100644
--- a/src/services/common-service/common-resource-service.ts
+++ b/src/services/common-service/common-resource-service.ts
@@ -32,7 +32,7 @@ export interface Errors {
 export enum CommonResourceServiceError {
     UNIQUE_VIOLATION = 'UniqueViolation',
     OWNERSHIP_CYCLE = 'OwnershipCycle',
-    MODIFYING_CONTAINER_REQUEST_FINAL_STATE = 'ModifyingFinalState',
+    MODIFYING_CONTAINER_REQUEST_FINAL_STATE = 'ModifyingContainerRequestFinalState',
     UNKNOWN = 'Unknown',
     NONE = 'None'
 }
diff --git a/src/store/processes/process-move-actions.ts b/src/store/processes/process-move-actions.ts
index d59cdca..312b041 100644
--- a/src/store/processes/process-move-actions.ts
+++ b/src/store/processes/process-move-actions.ts
@@ -28,6 +28,8 @@ export const openMoveProcessDialog = (resource: { name: string, uuid: string })
             } else {
                 dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'You can move only draft processes.', hideDuration: 2000 }));
             }
+        } else {
+            dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Process not found', hideDuration: 2000 }));
         }
     };
 
@@ -46,7 +48,7 @@ export const moveProcess = (resource: MoveToFormDialogData) =>
             if (error === CommonResourceServiceError.UNIQUE_VIOLATION) {
                 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 uncommitted process.' }));
+                dispatch(stopSubmit(PROCESS_MOVE_FORM_NAME, { ownerUuid: 'You can move only draft processes.' }));
             }
             else {
                 dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_MOVE_FORM_NAME }));

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list