1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

Change show condition on public note to be more stylistically similar

This commit is contained in:
Brett Sun 2015-12-07 10:52:00 +01:00
parent 8fcb7fcb01
commit d2aba04bea

View File

@ -277,7 +277,7 @@ let PieceContainer = React.createClass({
defaultValue={this.state.piece.public_note || null} defaultValue={this.state.piece.public_note || null}
placeholder={getLangText('Enter your comments ...')} placeholder={getLangText('Enter your comments ...')}
editable={!!this.state.piece.acl.acl_edit} editable={!!this.state.piece.acl.acl_edit}
show={!!this.state.piece.public_note || !!this.state.piece.acl.acl_edit} show={!!(this.state.piece.public_note || this.state.piece.acl.acl_edit)}
successMessage={getLangText('Public note saved')} successMessage={getLangText('Public note saved')}
url={ApiUrls.note_public_piece} url={ApiUrls.note_public_piece}
currentUser={this.state.currentUser}/> currentUser={this.state.currentUser}/>