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

add only unsaved filter

This commit is contained in:
Rokt33r
2015-12-28 12:36:43 +09:00
parent 59f83c2432
commit f9539ab50a
5 changed files with 33 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ import {
SET_SEARCH_FILTER,
SET_TAG_FILTER,
CLEAR_SEARCH,
TOGGLE_ONLY_UNSAVED_FILTER,
TOGGLE_TUTORIAL,
// user
@@ -31,7 +32,7 @@ import activityRecord from 'browser/lib/activityRecord'
const initialStatus = {
search: '',
isTutorialOpen: false,
isStatusLocked: false
onlyUnsaved: false
}
let data = dataStore.getData()
@@ -264,6 +265,10 @@ function status (state = initialStatus, action) {
case CLEAR_SEARCH:
state.search = ''
return state
case TOGGLE_ONLY_UNSAVED_FILTER:
state.onlyUnsaved = !state.onlyUnsaved
return state
default:
return state