diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 15:03:13 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 15:04:12 +0200 |
| commit | ba825eb101f8ca1cbf5de7a87c6c2995a0d687a5 (patch) | |
| tree | 049b6d2cc7d4517f763b357ba29feb2a6cc2e578 /app/client/system | |
| parent | 0db903f139aa2eb91308f99bb3be3619c2d9b217 (diff) | |
du command
Diffstat (limited to 'app/client/system')
| -rw-r--r-- | app/client/system/system.actions.js | 2 | ||||
| -rw-r--r-- | app/client/system/system.component.js | 3 | ||||
| -rw-r--r-- | app/client/system/system.reducer.js | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/app/client/system/system.actions.js b/app/client/system/system.actions.js index 7039ff2..8758715 100644 --- a/app/client/system/system.actions.js +++ b/app/client/system/system.actions.js @@ -5,7 +5,7 @@ import actions from '../actions' export const run = (cmd) => (dispatch) => { dispatch({ type: types.system.running_command, cmd }) - socket.actions.run_system_command(cmd) + socket.actions.run_system_command({ cmd }) .then(data => { dispatch({ type: types.system.command_output, diff --git a/app/client/system/system.component.js b/app/client/system/system.component.js index 10ec971..216c7cc 100644 --- a/app/client/system/system.component.js +++ b/app/client/system/system.component.js @@ -45,11 +45,10 @@ class System extends Component { render(){ const { site, server, relay, runner, rpc, actions } = this.props return ( - <div className='system'> + <div className='app system'> <div className='heading'> <h1>{site.name} system</h1> </div> - <div className='row params'> <div className='column'> <Group title="Status"> diff --git a/app/client/system/system.reducer.js b/app/client/system/system.reducer.js index 8378bf3..961db74 100644 --- a/app/client/system/system.reducer.js +++ b/app/client/system/system.reducer.js @@ -126,7 +126,7 @@ const systemReducer = (state = systemInitialState, action) => { connected: false, error: null, }, - runner: action.runner, + runner: action.runner || state.runner, } case types.system.load_site: document.querySelector('title').innerHTML = action.site.name + '.cortex' |
