1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 18:56:22 +00:00

Rename handleDeleteButtonClick to handleTrashButtonClick

This commit is contained in:
asmsuechan
2017-07-07 20:04:09 +09:00
parent 44fc356775
commit 1b07d393f2
2 changed files with 3 additions and 3 deletions

View File

@@ -166,7 +166,7 @@ class SnippetNoteDetail extends React.Component {
} }
handleDeleteButtonClick (e) { handleTrashButtonClick (e) {
let index = dialog.showMessageBox(remote.getCurrentWindow(), { let index = dialog.showMessageBox(remote.getCurrentWindow(), {
type: 'warning', type: 'warning',
message: 'Delete a note', message: 'Delete a note',
@@ -520,7 +520,7 @@ class SnippetNoteDetail extends React.Component {
</div> </div>
<div styleName='info-right'> <div styleName='info-right'>
<TrashButton <TrashButton
onClick={(e) => this.handleDeleteButtonClick(e)} onClick={(e) => this.handleTrashButtonClick(e)}
/> />
<button styleName='control-fullScreenButton' <button styleName='control-fullScreenButton'
onMouseDown={(e) => this.handleFullScreenButton(e)} onMouseDown={(e) => this.handleFullScreenButton(e)}

View File

@@ -17,7 +17,7 @@ class Detail extends React.Component {
this.refs.root != null && this.refs.root.focus() this.refs.root != null && this.refs.root.focus()
} }
this.deleteHandler = () => { this.deleteHandler = () => {
this.refs.root != null && this.refs.root.handleDeleteButtonClick() this.refs.root != null && this.refs.root.handleTrashButtonClick()
} }
} }