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

Desktop: Fixes #3407: In some cases, changes made to an attachment would not be saved. Also added banner to show that an attachment is being edited

This commit is contained in:
Laurent Cozic
2020-07-22 19:03:31 +01:00
parent f3dc3602c8
commit 4bef79cd71
18 changed files with 200 additions and 111 deletions

View File

@ -3,6 +3,7 @@ const Folder = require('lib/models/Folder.js');
const ArrayUtils = require('lib/ArrayUtils.js');
const { ALL_NOTES_FILTER_ID } = require('lib/reserved-ids');
const CommandService = require('lib/services/CommandService').default;
const resourceEditWatcherReducer = require('lib/services/ResourceEditWatcher/reducer').default;
const defaultState = {
notes: [],
@ -1057,6 +1058,8 @@ const reducer = (state = defaultState, action) => {
newState = handleHistory(newState, action);
}
newState = resourceEditWatcherReducer(newState, action);
CommandService.instance().scheduleMapStateToProps(newState);
return newState;