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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user