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

Folder indexing

This commit is contained in:
Rokt33r
2015-10-20 00:55:18 +09:00
parent 0899cea4b4
commit 58381b8062
7 changed files with 88 additions and 37 deletions

View File

@@ -8,6 +8,7 @@ export const SWITCH_USER = 'SWITCH_USER'
export const SWITCH_FOLDER = 'SWITCH_FOLDER'
export const SWITCH_MODE = 'SWITCH_MODE'
export const SWITCH_ARTICLE = 'SWITCH_ARTICLE'
export const SET_SEARCH_FILTER = 'SET_SEARCH_FILTER'
// Status - mode
export const IDLE_MODE = 'IDLE_MODE'
@@ -56,10 +57,10 @@ export function switchUser (userId) {
}
}
export function switchFolder (folderId) {
export function switchFolder (folderName) {
return {
type: SWITCH_FOLDER,
data: folderId
data: folderName
}
}
@@ -76,3 +77,10 @@ export function switchArticle (articleKey) {
data: articleKey
}
}
export function setSearchFilter (search) {
return {
type: SET_SEARCH_FILTER,
data: search
}
}