1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +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}
placeholder={getLangText('Enter your comments ...')}
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')}
url={ApiUrls.note_public_piece}
currentUser={this.state.currentUser}/>