From d94c415168b20dd43848dd7c8c77c07d8d4528d4 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 16 Sep 2018 16:39:27 +0200 Subject: s00per k3wl 0bj3ct d357rUc7ur1nG --- app/client/system/system.actions.js | 11 +++++++++++ 1 file changed, 11 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 a34bd58..ccd9acd 100644 --- a/app/client/system/system.actions.js +++ b/app/client/system/system.actions.js @@ -25,6 +25,17 @@ export const listDirectory = (opt) => (dispatch) => { }) } +export const countDirectory = (opt) => (dispatch) => { + dispatch({ type: types.system.counting_directory, opt }) + socket.actions.count_directory(opt) + .then(data => { + dispatch({ + type: types.system.count_directory, + data: data, + }) + }) +} + export const changeTool = (tool) => { localStorage.setItem('system.last_tool', tool) return { type: types.app.change_tool, tool } -- cgit v1.2.3-70-g09d2