[ARVADOS-WORKBENCH2] updated: 1.3.0-123-g6e92c39

Git user git at public.curoverse.com
Fri Dec 14 08:01:38 EST 2018


Summary of changes:
 src/store/processes/process-input-actions.ts | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

       via  6e92c390c1302fe8d680ebc03c8d048cf7f11fdf (commit)
      from  d8dea15148aaf550018d9f8bf1b273da6bc79f12 (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 6e92c390c1302fe8d680ebc03c8d048cf7f11fdf
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date:   Fri Dec 14 14:01:26 2018 +0100

    refs #14615-placeholder-message-displayed-instead-of-inputs-link
    
    Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>

diff --git a/src/store/processes/process-input-actions.ts b/src/store/processes/process-input-actions.ts
index b67622d..b35081c 100644
--- a/src/store/processes/process-input-actions.ts
+++ b/src/store/processes/process-input-actions.ts
@@ -5,7 +5,8 @@
 import { dialogActions } from '~/store/dialog/dialog-actions';
 import { RootState } from '~/store/store';
 import { Dispatch } from 'redux';
-import { getProcess, Process } from '~/store/processes/process';
+import { getProcess } from '~/store/processes/process';
+import { snackbarActions } from '~/store/snackbar/snackbar-actions';
 
 export const PROCESS_INPUT_DIALOG_NAME = 'processInputDialog';
 
@@ -13,7 +14,11 @@ export const openProcessInputDialog = (processUuid: string) =>
     (dispatch: Dispatch<any>, getState: () => RootState) => {
         const process = getProcess(processUuid)(getState().resources);
         if (process) {
-            const data: Process = process;
-            dispatch(dialogActions.OPEN_DIALOG({ id: PROCESS_INPUT_DIALOG_NAME, data }));
+            const data: any = process;
+            if (data && data.containerRequest.mounts.varLibCwlWorkflowJson && data.containerRequest.mounts.varLibCwlWorkflowJson.content.graph[1].inputs.length > 0) {
+                dispatch(dialogActions.OPEN_DIALOG({ id: PROCESS_INPUT_DIALOG_NAME, data }));
+            } else {
+                dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'There are no inputs in this process!' }));
+            }
         }
     }; 
\ No newline at end of file

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list