You've already forked joplin
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user