You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-21 23:17:42 +02:00
Moved sync scheduling to redux middleware
This commit is contained in:
@ -64,11 +64,9 @@ class NotesScreenComponent extends BaseScreenComponent {
|
||||
|
||||
Folder.delete(folderId).then(() => {
|
||||
this.props.dispatch({
|
||||
type: 'Navigation/NAVIGATE',
|
||||
type: 'NAV_GO',
|
||||
routeName: 'Welcome',
|
||||
});
|
||||
|
||||
reg.scheduleSync();
|
||||
}).catch((error) => {
|
||||
alert(error.message);
|
||||
});
|
||||
@ -77,7 +75,7 @@ class NotesScreenComponent extends BaseScreenComponent {
|
||||
|
||||
editFolder_onPress(folderId) {
|
||||
this.props.dispatch({
|
||||
type: 'Navigation/NAVIGATE',
|
||||
type: 'NAV_GO',
|
||||
routeName: 'Folder',
|
||||
folderId: folderId,
|
||||
});
|
||||
|
Reference in New Issue
Block a user