diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-08 00:57:05 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-08 00:57:05 +0200 |
| commit | 986adcb3fa79ab32af8c43f098489467d783d18b (patch) | |
| tree | 251dda367cc418047e743612001105f3d7e0ea3e /app/client/system/system.reducer.js | |
| parent | fec93601f163d22760978c9db61c4a78ce5281da (diff) | |
must be string
Diffstat (limited to 'app/client/system/system.reducer.js')
| -rw-r--r-- | app/client/system/system.reducer.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/client/system/system.reducer.js b/app/client/system/system.reducer.js index 8585bba..cc87128 100644 --- a/app/client/system/system.reducer.js +++ b/app/client/system/system.reducer.js @@ -216,6 +216,19 @@ const systemReducer = (state = systemInitialState, action) => { } } case types.system.stdout: + if (action.data.processor && state.runner[action.data.processor]) { + return { + ...state, + runner: { + ...state.runner, + [action.data.processor]: { + ...state.runner[action.data.processor], + last_message: action.data.data, + } + }, + stdout: state.stdout + action.data.data, + } + } return { ...state, stdout: state.stdout + action.data.data, @@ -223,6 +236,7 @@ const systemReducer = (state = systemInitialState, action) => { case types.system.stderr: return { ...state, + last_message: action.data.data, stderr: state.stderr + action.data.data, } default: |
