1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Switching state handling to Redux

This commit is contained in:
Laurent Cozic
2017-10-07 22:01:03 +01:00
parent 6a3eb65a66
commit 6f34d717f8
6 changed files with 74 additions and 12 deletions

View File

@ -118,6 +118,12 @@ const reducer = (state = defaultState, action) => {
newState.historyCanGoBack = !!navHistory.length;
break;
case 'NOTES_SELECT':
newState = Object.assign({}, state);
newState.selectedNoteId = action.noteId;
break;
case 'SETTINGS_UPDATE_ALL':
newState = Object.assign({}, state);