diff options
Diffstat (limited to 'client/actions/index.js')
| -rw-r--r-- | client/actions/index.js | 17 |
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, |
