+ content={edition}
+ currentUser={currentUser} />
- {this.props.edition.title}
-
-
+ {edition.title}
+
+
+ actionPanelButtonListType={actionPanelButtonListType}
+ edition={edition}
+ currentUser={currentUser}
+ handleSuccess={loadEdition}/>
+ show={edition.acl.acl_coa === true}>
+ coa={edition.coa}
+ coaError={coaError}
+ editionId={edition.bitcoin_id}/>
0}>
+ show={edition.ownership_history && edition.ownership_history.length > 0}>
+ history={edition.ownership_history} />
0}>
+ show={edition.consign_history && edition.consign_history.length > 0}>
+ history={edition.consign_history} />
0}>
+ show={edition.loan_history && edition.loan_history.length > 0}>
+ history={edition.loan_history} />
+ show={!!(currentUser.username || edition.acl.acl_edit || edition.public_note)}>
{return {'bitcoin_id': this.props.edition.bitcoin_id}; }}
+ id={() => {return {'bitcoin_id': edition.bitcoin_id}; }}
label={getLangText('Personal note (private)')}
- defaultValue={this.props.edition.private_note ? this.props.edition.private_note : null}
+ defaultValue={edition.private_note ? edition.private_note : null}
placeholder={getLangText('Enter your comments ...')}
editable={true}
successMessage={getLangText('Private note saved')}
url={ApiUrls.note_private_edition}
- currentUser={this.props.currentUser}/>
+ currentUser={currentUser}/>
{return {'bitcoin_id': this.props.edition.bitcoin_id}; }}
+ id={() => {return {'bitcoin_id': edition.bitcoin_id}; }}
label={getLangText('Personal note (public)')}
- defaultValue={this.props.edition.public_note ? this.props.edition.public_note : null}
+ defaultValue={edition.public_note ? edition.public_note : null}
placeholder={getLangText('Enter your comments ...')}
- editable={!!this.props.edition.acl.acl_edit}
- show={!!this.props.edition.public_note || !!this.props.edition.acl.acl_edit}
+ editable={!!edition.acl.acl_edit}
+ show={!!edition.public_note || !!edition.acl.acl_edit}
successMessage={getLangText('Public edition note saved')}
url={ApiUrls.note_public_edition}
- currentUser={this.props.currentUser}/>
+ currentUser={currentUser}/>
0
- || this.props.edition.other_data.length > 0}>
+ show={edition.acl.acl_edit ||
+ Object.keys(edition.extra_data).length > 0 ||
+ edition.other_data.length > 0}>
+ editable={edition.acl.acl_edit}
+ pieceId={edition.parent}
+ extraData={edition.extra_data}
+ otherData={edition.other_data}
+ handleSuccess={loadEdition} />
+ edition={edition} />