1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-17 11:41:44 +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/)) { if (!location.pathname.match(/\/home|\/starred|\/trash/)) {
menu.append(new MenuItem({ menu.append(new MenuItem({
label: label, label: label,
click: (e) => this.handlePinToTop(e, uniqueKey) click: (e) => this.pinToTop(e, uniqueKey)
})) }))
} }
menu.append(new MenuItem({ menu.append(new MenuItem({
label: 'Delete Note', label: 'Delete Note',
click: (e) => this.handleDeleteNote(e, uniqueKey) click: (e) => this.deleteNote(e, uniqueKey)
})) }))
menu.popup() menu.popup()
} }
handlePinToTop (e, uniqueKey) { pinToTop (e, uniqueKey) {
const { data, location } = this.props const { data, location } = this.props
let splitted = location.pathname.split('/') let splitted = location.pathname.split('/')
const storageKey = splitted[2] const storageKey = splitted[2]
@@ -426,7 +426,7 @@ class NoteList extends React.Component {
}) })
} }
handleDeleteNote (e, uniqueKey) { deleteNote (e, uniqueKey) {
this.handleNoteClick(e, uniqueKey) this.handleNoteClick(e, uniqueKey)
ee.emit('detail:delete') ee.emit('detail:delete')
} }