summaryrefslogtreecommitdiff
path: root/app/client/system/system.actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-16 16:39:27 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-16 16:39:27 +0200
commitd94c415168b20dd43848dd7c8c77c07d8d4528d4 (patch)
treea05f0596359891605d9154e98f720903eee28bd9 /app/client/system/system.actions.js
parent14652eecb0fb4ebcb14e830504bfb02017bd010e (diff)
s00per k3wl 0bj3ct d357rUc7ur1nG
Diffstat (limited to 'app/client/system/system.actions.js')
-rw-r--r--app/client/system/system.actions.js11
1 files changed, 11 insertions, 0 deletions
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 }