summaryrefslogtreecommitdiff
path: root/app/client/system/system.actions.js
diff options
context:
space:
mode:
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 }