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

Change markdown lock icon

This commit is contained in:
Kazu Yokomizo
2017-11-14 21:15:00 +09:00
parent e933ad89dc
commit 34a16298d4
3 changed files with 3 additions and 17 deletions

View File

@@ -232,7 +232,7 @@ class MarkdownNoteDetail extends React.Component {
}
getToggleLockButton () {
return this.state.isLocked ? 'fa-lock' : 'fa-unlock'
return this.state.isLocked ? 'fa-eye-slash' : 'fa-eye'
}
handleDeleteKeyDown (e) {
@@ -339,9 +339,6 @@ class MarkdownNoteDetail extends React.Component {
onMouseDown={(e) => this.handleLockButtonMouseDown(e)}
>
<i className={faClassName} styleName='lock-button' />
<span styleName='control-lockButton-tooltip'>
{this.state.isLocked ? 'Unlock Editor' : 'Keep Editor Locked'}
</span>
</button>
return (
this.state.isLockButtonShown ? lockButtonComponent : ''