diff --git a/js/components/ascribe_collapsible/collapsible_paragraph.js b/js/components/ascribe_collapsible/collapsible_paragraph.js index e146b42b..7ad8d0af 100644 --- a/js/components/ascribe_collapsible/collapsible_paragraph.js +++ b/js/components/ascribe_collapsible/collapsible_paragraph.js @@ -12,7 +12,9 @@ const CollapsibleParagraph = React.createClass({ React.PropTypes.object, React.PropTypes.array ]), - iconName: React.PropTypes.string + iconName: React.PropTypes.string, + show: React.PropTypes.bool, + defaultExpanded: React.PropTypes.bool }, getDefaultProps() { diff --git a/js/components/ascribe_detail/edition.js b/js/components/ascribe_detail/edition.js index 2fc25547..bc2f0cfa 100644 --- a/js/components/ascribe_detail/edition.js +++ b/js/components/ascribe_detail/edition.js @@ -147,7 +147,7 @@ let Edition = React.createClass({ currentUser={this.state.currentUser}/> {return {'bitcoin_id': this.props.edition.bitcoin_id}; }} - label={getLangText('Edition note (public)')} + label={getLangText('Personal note (public)')} defaultValue={this.props.edition.public_note ? this.props.edition.public_note : null} placeholder={getLangText('Enter your comments ...')} editable={!!this.props.edition.acl.acl_edit} diff --git a/js/components/ascribe_detail/piece_container.js b/js/components/ascribe_detail/piece_container.js index 2f7838e5..bf3faaac 100644 --- a/js/components/ascribe_detail/piece_container.js +++ b/js/components/ascribe_detail/piece_container.js @@ -109,7 +109,6 @@ let PieceContainer = React.createClass({ let pieceState = mergeOptions({}, state.piece); pieceState.acl.acl_loan = false; - this.setState({ piece: pieceState }); @@ -264,7 +263,6 @@ let PieceContainer = React.createClass({ } buttons={this.getActions()}> {this.getCreateEditionsDialog()} - 0}> @@ -273,11 +271,14 @@ let PieceContainer = React.createClass({ + show={!!(this.state.currentUser.username + || this.state.piece.acl.acl_edit + || this.state.piece.public_note)}>