1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-29 00:58:03 +02:00
This commit is contained in:
diminator 2015-10-01 09:49:01 +02:00
parent 44cf707e34
commit b233dbb937
2 changed files with 7 additions and 8 deletions

View File

@ -24,7 +24,7 @@ import EditionDetailProperty from './detail_property';
import LicenseDetail from './license_detail';
import EditionFurtherDetails from './further_details';
import EditionActions from './edition_actions';
import EditionActionPanel from './edition_action_panel';
import Note from './note';
@ -195,12 +195,12 @@ let EditionSummary = React.createClass({
},
render() {
let { edition } = this.props;
let { edition, currentUser } = this.props;
return (
<div className="ascribe-detail-header">
<EditionDetailProperty
label={getLangText('EDITION')}
value={ edition.edition_number + ' ' + getLangText('of') + ' ' + this.props.edition.num_editions} />
value={ edition.edition_number + ' ' + getLangText('of') + ' ' + edition.num_editions} />
<EditionDetailProperty
label={getLangText('ID')}
value={ edition.bitcoin_id }
@ -210,9 +210,9 @@ let EditionSummary = React.createClass({
value={ edition.owner } />
<LicenseDetail license={edition.license_type}/>
{this.getStatus()}
<EditionActions
<EditionActionPanel
edition={edition}
currentUser={this.props.currentUser}
currentUser={currentUser}
handleSuccess={this.handleSuccess} />
<hr/>
</div>

View File

@ -32,7 +32,7 @@ import { getLangText } from '../../utils/lang_utils';
A component that handles all the actions inside of the edition detail
handleSuccess requires a loadEdition action (could be refactored)
*/
let EditionActions = React.createClass({
let EditionActionPanel = React.createClass({
propTypes: {
edition: React.PropTypes.object,
currentUser: React.PropTypes.object,
@ -57,7 +57,6 @@ let EditionActions = React.createClass({
this.setState(state);
},
handleDeleteSuccess(response) {
this.refreshCollection();
@ -167,4 +166,4 @@ let EditionActions = React.createClass({
}
});
export default EditionActions;
export default EditionActionPanel;