From ba825eb101f8ca1cbf5de7a87c6c2995a0d687a5 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 5 Jun 2018 15:03:13 +0200 Subject: du command --- app/client/system/system.actions.js | 2 +- app/client/system/system.component.js | 3 +-- app/client/system/system.reducer.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'app/client/system') 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 ( -
+

{site.name} system

-
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' -- cgit v1.2.3-70-g09d2