diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-02 16:17:08 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-02 16:17:08 +0200 |
| commit | b700116b56fa58ad23f6bc2c351bf8ab5b294adc (patch) | |
| tree | 097396ee2818a71f7b4667adc21a0f2d0e93527d /app/client | |
| parent | f1cee5b8b9540b26ca87e0df73b0705ffbad9025 (diff) | |
whmmm
Diffstat (limited to 'app/client')
| -rw-r--r-- | app/client/socket/index.js | 2 | ||||
| -rw-r--r-- | app/client/system/system.actions.js | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/client/socket/index.js b/app/client/socket/index.js index 87540f4..a5d9987 100644 --- a/app/client/socket/index.js +++ b/app/client/socket/index.js @@ -2,12 +2,14 @@ import { store } from '../store' import types from '../types' import { socket } from './socket.connection' +import * as actions from './socket.actions' import * as system from './socket.system' import * as live from './socket.live' import * as task from './socket.task' export default { socket, + actions, system, live, task, diff --git a/app/client/system/system.actions.js b/app/client/system/system.actions.js index 2e5f783..9e4f178 100644 --- a/app/client/system/system.actions.js +++ b/app/client/system/system.actions.js @@ -3,7 +3,7 @@ import types from '../types' export const run = (cmd) => (dispatch) => { dispatch({ type: types.system.running_command, cmd }) - socket.system.run_system_command(cmd) + socket.actions.run_system_command(cmd) .then(data => { dispatch({ type: types.system.command_output, @@ -14,7 +14,7 @@ export const run = (cmd) => (dispatch) => { export const listDirectory = (opt) => (dispatch) => { dispatch({ type: types.system.listing_directory, opt }) - socket.system.list_directory(opt) + socket.actions.list_directory(opt) .then(data => { dispatch({ type: types.system.list_directory, |
