1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

add folder create

This commit is contained in:
Rokt33r
2015-10-24 21:32:53 +09:00
parent 911cfd8642
commit 5ed2dfccd1
5 changed files with 115 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ export const USER_UPDATE = 'USER_UPDATE'
export const ARTICLE_REFRESH = 'ARTICLE_REFRESH'
export const ARTICLE_UPDATE = 'ARTICLE_UPDATE'
export const ARTICLE_DESTROY = 'ARTICLE_DESTROY'
export const FOLDER_DESTROY = 'FOLDER_DESTROY'
export const SWITCH_USER = 'SWITCH_USER'
export const SWITCH_FOLDER = 'SWITCH_FOLDER'
@@ -50,6 +51,13 @@ export function destroyArticle (userId, articleKey) {
}
}
export function destroyFolder (userId, folderId) {
return {
type: FOLDER_DESTROY,
data: { userId, folderId }
}
}
// Nav
export function switchUser (userId) {
return {