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

public note is visible outside

This commit is contained in:
Cevo 2015-11-25 21:43:15 +01:00
parent dc96e908eb
commit e482caaa99

View File

@ -259,12 +259,12 @@ let PieceContainer = React.createClass({
</CollapsibleParagraph>
<CollapsibleParagraph
title={getLangText('Notes')}
show={(!!(this.state.currentUser.username || this.state.piece.public_note)) &&
(!!this.state.piece.acl.acl_edit)}>
show={(!!(this.state.currentUser.username || this.state.piece.public_note))}>
<Note
id={this.getId}
label={getLangText('Personal note (private)')}
defaultValue={this.state.piece.private_note || null}
show = {!!this.state.currentUser.username}
placeholder={getLangText('Enter your comments ...')}
editable={true}
successMessage={getLangText('Private note saved')}