From 2f2c1ef4029dee17be0d16acdd60b7d1718d519f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 19 Jul 2017 02:06:56 +0200 Subject: refactor file browser stuff --- client/actions/index.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'client/actions/index.js') 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, -- cgit v1.2.3-70-g09d2