diff options
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' |
