From 964ac7009e6db5a06233bdc07fa63778eebf2db7 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 1 Jun 2018 03:30:39 +0200 Subject: async commands!! --- app/client/system/system.actions.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/client/system/system.actions.js') diff --git a/app/client/system/system.actions.js b/app/client/system/system.actions.js index 4c5f98e..a318d68 100644 --- a/app/client/system/system.actions.js +++ b/app/client/system/system.actions.js @@ -6,6 +6,11 @@ export const run = (cmd) => { return { type: types.system.running_command, cmd } } +export const listDirectory = (opt) => { + socket.system.list_directory(opt) + return { type: types.system.listing_directory, opt } +} + export const changeTool = (tool) => { return { type: types.app.change_tool, tool } } \ No newline at end of file -- cgit v1.2.3-70-g09d2