1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Fixed updating view when note is deleted

This commit is contained in:
Laurent Cozic
2017-10-09 20:57:00 +01:00
parent 30480a8029
commit 8c7cd8de88
7 changed files with 74 additions and 29 deletions

View File

@@ -77,6 +77,12 @@ class Folder extends BaseItem {
});
}
static batchDelete(ids, options = null) {
for (let i = 0; i < ids.length; i++) {
this.delete(ids[i], options);
}
}
static conflictFolderTitle() {
return _('Conflicts');
}

View File

@@ -345,6 +345,17 @@ class Note extends BaseItem {
});
}
static batchDelete(ids, options = null) {
const result = super.batchDelete(ids, options);
for (let i = 0; i < ids.length; i++) {
this.dispatch({
type: 'NOTES_DELETE',
noteId: ids[i],
});
}
return result;
}
}
Note.updateGeolocationEnabled_ = true;