1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 18:56:22 +00:00
This commit is contained in:
Andy Klimczak
2018-01-30 23:13:38 -05:00
parent d894bb4aab
commit dc03bb76e6
2 changed files with 6 additions and 2 deletions

View File

@@ -200,6 +200,7 @@ class MarkdownNoteDetail extends React.Component {
} }
ee.once('list:moved', dispatchHandler) ee.once('list:moved', dispatchHandler)
}) })
.then(() => ee.emit('list:moved'))
} }
} else { } else {
if (confirmDeletion()) { if (confirmDeletion()) {
@@ -210,10 +211,11 @@ class MarkdownNoteDetail extends React.Component {
}, () => { }, () => {
this.save() this.save()
}) })
}
}
ee.emit('list:next') ee.emit('list:next')
} }
}
}
handleUndoButtonClick (e) { handleUndoButtonClick (e) {
const { note } = this.state const { note } = this.state

View File

@@ -193,6 +193,7 @@ class SnippetNoteDetail extends React.Component {
} }
ee.once('list:moved', dispatchHandler) ee.once('list:moved', dispatchHandler)
}) })
.then(() => ee.emit('list:moved'))
} }
} else { } else {
if (confirmDeletion()) { if (confirmDeletion()) {
@@ -203,10 +204,11 @@ class SnippetNoteDetail extends React.Component {
}, () => { }, () => {
this.save() this.save()
}) })
}
}
ee.emit('list:next') ee.emit('list:next')
} }
}
}
handleUndoButtonClick (e) { handleUndoButtonClick (e) {
const { note } = this.state const { note } = this.state