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

Fix not to be shown the lock button if config.editor.switchPreview is

RIGHTCLICK
This commit is contained in:
asmsuechan
2017-03-17 23:41:32 -07:00
parent e7fd18967b
commit 6aa9104076

View File

@@ -231,7 +231,7 @@ class MarkdownNoteDetail extends React.Component {
}
handleToggleLockButton () {
if (this.refs.content.state.status === 'CODE') {
if (this.props.config.editor.switchPreview === 'BLUR' && this.refs.content.state.status === 'CODE') {
this.setState({isLockButtonShown: true})
} else {
this.setState({isLockButtonShown: false})