mirror of
https://github.com/ascribe/onion.git
synced 2025-01-08 20:55:59 +01:00
public note is visible outside
This commit is contained in:
parent
dc96e908eb
commit
e482caaa99
@ -259,12 +259,12 @@ let PieceContainer = React.createClass({
|
|||||||
</CollapsibleParagraph>
|
</CollapsibleParagraph>
|
||||||
<CollapsibleParagraph
|
<CollapsibleParagraph
|
||||||
title={getLangText('Notes')}
|
title={getLangText('Notes')}
|
||||||
show={(!!(this.state.currentUser.username || this.state.piece.public_note)) &&
|
show={(!!(this.state.currentUser.username || this.state.piece.public_note))}>
|
||||||
(!!this.state.piece.acl.acl_edit)}>
|
|
||||||
<Note
|
<Note
|
||||||
id={this.getId}
|
id={this.getId}
|
||||||
label={getLangText('Personal note (private)')}
|
label={getLangText('Personal note (private)')}
|
||||||
defaultValue={this.state.piece.private_note || null}
|
defaultValue={this.state.piece.private_note || null}
|
||||||
|
show = {!!this.state.currentUser.username}
|
||||||
placeholder={getLangText('Enter your comments ...')}
|
placeholder={getLangText('Enter your comments ...')}
|
||||||
editable={true}
|
editable={true}
|
||||||
successMessage={getLangText('Private note saved')}
|
successMessage={getLangText('Private note saved')}
|
||||||
|
Loading…
Reference in New Issue
Block a user