1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Change method names

This commit is contained in:
asmsuechan
2017-10-13 14:05:10 +09:00
parent 3027cc81b3
commit 03fc453608

View File

@@ -375,17 +375,17 @@ class NoteList extends React.Component {
if (!location.pathname.match(/\/home|\/starred|\/trash/)) {
menu.append(new MenuItem({
label: label,
click: (e) => this.handlePinToTop(e, uniqueKey)
click: (e) => this.pinToTop(e, uniqueKey)
}))
}
menu.append(new MenuItem({
label: 'Delete Note',
click: (e) => this.handleDeleteNote(e, uniqueKey)
click: (e) => this.deleteNote(e, uniqueKey)
}))
menu.popup()
}
handlePinToTop (e, uniqueKey) {
pinToTop (e, uniqueKey) {
const { data, location } = this.props
let splitted = location.pathname.split('/')
const storageKey = splitted[2]
@@ -426,7 +426,7 @@ class NoteList extends React.Component {
})
}
handleDeleteNote (e, uniqueKey) {
deleteNote (e, uniqueKey) {
this.handleNoteClick(e, uniqueKey)
ee.emit('detail:delete')
}