1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Change a name showlockbutton to togglelockbutton

This commit is contained in:
asmsuechan
2017-03-17 23:32:44 -07:00
parent 4767f15e9b
commit 8a5558db55
2 changed files with 8 additions and 8 deletions

View File

@@ -82,7 +82,7 @@ class MarkdownEditor extends React.Component {
this.refs.code.blur()
this.refs.preview.focus()
}
eventEmitter.emit('topbar:showlockbutton')
eventEmitter.emit('topbar:togglelockbutton')
})
}
}
@@ -99,7 +99,7 @@ class MarkdownEditor extends React.Component {
this.refs.preview.focus()
this.refs.preview.scrollTo(cursorPosition.line)
})
eventEmitter.emit('topbar:showlockbutton')
eventEmitter.emit('topbar:togglelockbutton')
}
}
@@ -115,7 +115,7 @@ class MarkdownEditor extends React.Component {
}, () => {
this.refs.code.focus()
})
eventEmitter.emit('topbar:showlockbutton')
eventEmitter.emit('topbar:togglelockbutton')
}
}
@@ -152,7 +152,7 @@ class MarkdownEditor extends React.Component {
} else {
this.refs.code.focus()
}
eventEmitter.emit('topbar:showlockbutton')
eventEmitter.emit('topbar:togglelockbutton')
}
reload () {