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:
parent
8fcb7fcb01
commit
d2aba04bea
@ -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}/>
|
||||||
|
Loading…
Reference in New Issue
Block a user