1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-22 23:56:53 +01:00

added public note to piece

This commit is contained in:
Cevo 2015-10-29 15:31:25 +01:00
parent 590818cf0b
commit 3cf59ae2af

View File

@ -267,6 +267,15 @@ let PieceContainer = React.createClass({
successMessage={getLangText('Private note saved')}
url={ApiUrls.note_private_piece}
currentUser={this.state.currentUser}/>
<Note
id={this.getId}
label={getLangText('Piece note (public)')}
defaultValue={this.state.piece.public_note || null}
placeholder={getLangText('Enter your comments ...')}
editable={!!this.state.piece.acl.acl_edit}
successMessage={getLangText('Public piece note saved')}
url={ApiUrls.note_public_piece}
currentUser={this.state.currentUser}/>
</CollapsibleParagraph>
<CollapsibleParagraph
title={getLangText('Further Details')}