mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
add folder create
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user