Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Rename handleDeleteButtonClick to handleTrashButtonClick
  • Loading branch information
asmsuechan committed Jul 7, 2017
commit 1b07d393f22dde115288c5f5e828c5335ada2f6e
4 changes: 2 additions & 2 deletions browser/main/Detail/SnippetNoteDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class SnippetNoteDetail extends React.Component {

}

handleDeleteButtonClick (e) {
handleTrashButtonClick (e) {
let index = dialog.showMessageBox(remote.getCurrentWindow(), {
type: 'warning',
message: 'Delete a note',
Expand Down Expand Up @@ -520,7 +520,7 @@ class SnippetNoteDetail extends React.Component {
</div>
<div styleName='info-right'>
<TrashButton
onClick={(e) => this.handleDeleteButtonClick(e)}
onClick={(e) => this.handleTrashButtonClick(e)}
/>
<button styleName='control-fullScreenButton'
onMouseDown={(e) => this.handleFullScreenButton(e)}
Expand Down
2 changes: 1 addition & 1 deletion browser/main/Detail/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Detail extends React.Component {
this.refs.root != null && this.refs.root.focus()
}
this.deleteHandler = () => {
this.refs.root != null && this.refs.root.handleDeleteButtonClick()
this.refs.root != null && this.refs.root.handleTrashButtonClick()
}
}

Expand Down