summaryrefslogtreecommitdiff
path: root/client/actions/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-07-19 02:06:56 +0200
committerJules Laplace <julescarbon@gmail.com>2017-07-19 02:06:56 +0200
commit2f2c1ef4029dee17be0d16acdd60b7d1718d519f (patch)
tree61e982c3a5bc6e8de8feddf423b8aeee72aa0c95 /client/actions/index.js
parent64e8c03dea044752bf3f2f228462721fe565f950 (diff)
refactor file browser stuff
Diffstat (limited to 'client/actions/index.js')
-rw-r--r--client/actions/index.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/client/actions/index.js b/client/actions/index.js
index 5b180ea..94d64c8 100644
--- a/client/actions/index.js
+++ b/client/actions/index.js
@@ -55,14 +55,29 @@ export const loadOpenFolders = (folders) => ({
type: 'LOAD_OPEN_FOLDERS',
folders,
})
-export const openFolder = (folder) => ({
+
+export const initNewFolder = () => ({
+ type: 'INIT_NEW_FOLDER'
+})
+export const cancelNewFolder = () => ({
+ type: 'CANCEL_NEW_FOLDER'
+})
+export const createNewFolder = (name, cb) => ({
+ type: 'CREATE_NEW_FOLDER',
+ name,
+ cb
+})
+
+export const openFolder = (folder, cb) => ({
type: 'OPEN_FOLDER',
folder,
+ cb
})
export const closeFolder = (folder) => ({
type: 'CLOSE_FOLDER',
folder,
})
+
export const addFolder = (folder) => ({
type: 'ADD_FOLDER',
folder,