1
0
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:
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>
<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')}