mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
PR fixes
This commit is contained in:
parent
44cf707e34
commit
b233dbb937
@ -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>
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user