mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-17 03:31:52 +00:00
Fix not to be shown the lock button if config.editor.switchPreview is
RIGHTCLICK
This commit is contained in:
@@ -231,7 +231,7 @@ class MarkdownNoteDetail extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleToggleLockButton () {
|
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})
|
this.setState({isLockButtonShown: true})
|
||||||
} else {
|
} else {
|
||||||
this.setState({isLockButtonShown: false})
|
this.setState({isLockButtonShown: false})
|
||||||
|
|||||||
Reference in New Issue
Block a user