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