15012: Updates all processes page when websocket event received.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Thu, 23 Jan 2020 20:30:04 +0000 (17:30 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Thu, 23 Jan 2020 20:30:04 +0000 (17:30 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

src/websocket/websocket.ts

index 7895644f6f46657547a8ca6d2c9cb83c5f42abb5..506b92c801fe33ac17706fcd4b26f035fd950d64 100644 (file)
@@ -14,6 +14,7 @@ import { addProcessLogsPanelItem } from '../store/process-logs-panel/process-log
 import { subprocessPanelActions } from "~/store/subprocess-panel/subprocess-panel-actions";
 import { projectPanelActions } from "~/store/project-panel/project-panel-action";
 import { getProjectPanelCurrentUuid } from '~/store/project-panel/project-panel-action';
+import { allProcessesPanelActions } from '~/store/all-processes-panel/all-processes-panel-action';
 
 export const initWebSocket = (config: Config, authService: AuthService, store: RootStore) => {
     if (config.websocketUrl) {
@@ -35,6 +36,7 @@ const messageListener = (store: RootStore) => (message: ResourceEventMessage) =>
             // fall through, this will happen for container requests as well.
             case ResourceKind.CONTAINER:
                 store.dispatch(subprocessPanelActions.REQUEST_ITEMS());
+                store.dispatch(allProcessesPanelActions.REQUEST_ITEMS());
                 if (message.objectOwnerUuid === getProjectPanelCurrentUuid(store.getState())) {
                     store.dispatch(projectPanelActions.REQUEST_ITEMS());
                 }