Enable process log live updates
[arvados.git] / src / store / workbench / workbench-actions.ts
index 3c68c0004519b15a73fca9a9c5553b316e3a68e5..8c7ec9a30f96a25ed699a38d78a0a6c67eb32760 100644 (file)
@@ -30,6 +30,7 @@ import * as collectionUpdateActions from '~/store/collections/collection-update-
 import * as collectionMoveActions from '~/store/collections/collection-move-actions';
 import * as processesActions from '../processes/processes-actions';
 import { getProcess } from '../processes/process';
+import { initProcessLogsPanel } from '../process-logs-panel/process-logs-panel-actions';
 
 
 export const loadWorkbench = () =>
@@ -185,6 +186,11 @@ export const loadProcess = (uuid: string) =>
         }
     };
 
+export const loadProcessLog = (uuid: string) =>
+    async (dispatch: Dispatch) => {
+        dispatch<any>(initProcessLogsPanel(uuid));
+    };
+
 export const resourceIsNotLoaded = (uuid: string) =>
     snackbarActions.OPEN_SNACKBAR({
         message: `Resource identified by ${uuid} is not loaded.`