mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
Remove misleading editions prop to pieceOrEditions
This commit is contained in:
parent
67fbfbd470
commit
6c8016e094
@ -17,7 +17,7 @@ import { mergeOptions } from '../../utils/general_utils';
|
|||||||
let AclButtonList = React.createClass({
|
let AclButtonList = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
className: React.PropTypes.string,
|
className: React.PropTypes.string,
|
||||||
editions: React.PropTypes.oneOfType([
|
pieceOrEditions: React.PropTypes.oneOfType([
|
||||||
React.PropTypes.object,
|
React.PropTypes.object,
|
||||||
React.PropTypes.array
|
React.PropTypes.array
|
||||||
]).isRequired,
|
]).isRequired,
|
||||||
@ -82,7 +82,7 @@ let AclButtonList = React.createClass({
|
|||||||
const { className,
|
const { className,
|
||||||
buttonsStyle,
|
buttonsStyle,
|
||||||
availableAcls,
|
availableAcls,
|
||||||
editions,
|
pieceOrEditions,
|
||||||
handleSuccess } = this.props;
|
handleSuccess } = this.props;
|
||||||
|
|
||||||
const { currentUser } = this.state;
|
const { currentUser } = this.state;
|
||||||
@ -92,27 +92,27 @@ let AclButtonList = React.createClass({
|
|||||||
<span ref="buttonList" style={buttonsStyle}>
|
<span ref="buttonList" style={buttonsStyle}>
|
||||||
<ShareButton
|
<ShareButton
|
||||||
availableAcls={availableAcls}
|
availableAcls={availableAcls}
|
||||||
pieceOrEditions={editions}
|
pieceOrEditions={pieceOrEditions}
|
||||||
currentUser={currentUser}
|
currentUser={currentUser}
|
||||||
handleSuccess={handleSuccess} />
|
handleSuccess={handleSuccess} />
|
||||||
<TransferButton
|
<TransferButton
|
||||||
availableAcls={availableAcls}
|
availableAcls={availableAcls}
|
||||||
pieceOrEditions={editions}
|
pieceOrEditions={pieceOrEditions}
|
||||||
currentUser={currentUser}
|
currentUser={currentUser}
|
||||||
handleSuccess={handleSuccess}/>
|
handleSuccess={handleSuccess}/>
|
||||||
<ConsignButton
|
<ConsignButton
|
||||||
availableAcls={availableAcls}
|
availableAcls={availableAcls}
|
||||||
pieceOrEditions={editions}
|
pieceOrEditions={pieceOrEditions}
|
||||||
currentUser={currentUser}
|
currentUser={currentUser}
|
||||||
handleSuccess={handleSuccess} />
|
handleSuccess={handleSuccess} />
|
||||||
<UnconsignButton
|
<UnconsignButton
|
||||||
availableAcls={availableAcls}
|
availableAcls={availableAcls}
|
||||||
pieceOrEditions={editions}
|
pieceOrEditions={pieceOrEditions}
|
||||||
currentUser={currentUser}
|
currentUser={currentUser}
|
||||||
handleSuccess={handleSuccess} />
|
handleSuccess={handleSuccess} />
|
||||||
<LoanButton
|
<LoanButton
|
||||||
availableAcls={availableAcls}
|
availableAcls={availableAcls}
|
||||||
pieceOrEditions={editions}
|
pieceOrEditions={pieceOrEditions}
|
||||||
currentUser={currentUser}
|
currentUser={currentUser}
|
||||||
handleSuccess={handleSuccess} />
|
handleSuccess={handleSuccess} />
|
||||||
{this.renderChildren()}
|
{this.renderChildren()}
|
||||||
|
@ -107,7 +107,7 @@ let EditionActionPanel = React.createClass({
|
|||||||
<AclButtonList
|
<AclButtonList
|
||||||
className="ascribe-button-list"
|
className="ascribe-button-list"
|
||||||
availableAcls={edition.acl}
|
availableAcls={edition.acl}
|
||||||
editions={[edition]}
|
pieceOrEditions={[edition]}
|
||||||
handleSuccess={this.handleSuccess}>
|
handleSuccess={this.handleSuccess}>
|
||||||
<AclProxy
|
<AclProxy
|
||||||
aclObject={edition.acl}
|
aclObject={edition.acl}
|
||||||
|
@ -199,7 +199,7 @@ let PieceContainer = React.createClass({
|
|||||||
<AclButtonList
|
<AclButtonList
|
||||||
className="ascribe-button-list"
|
className="ascribe-button-list"
|
||||||
availableAcls={piece.acl}
|
availableAcls={piece.acl}
|
||||||
editions={piece}
|
pieceOrEditions={piece}
|
||||||
handleSuccess={this.loadPiece}>
|
handleSuccess={this.loadPiece}>
|
||||||
<CreateEditionsButton
|
<CreateEditionsButton
|
||||||
label={getLangText('CREATE EDITIONS')}
|
label={getLangText('CREATE EDITIONS')}
|
||||||
|
@ -117,7 +117,7 @@ let PieceListBulkModal = React.createClass({
|
|||||||
<div className="row-fluid">
|
<div className="row-fluid">
|
||||||
<AclButtonList
|
<AclButtonList
|
||||||
availableAcls={availableAcls}
|
availableAcls={availableAcls}
|
||||||
editions={selectedEditions}
|
pieceOrEditions={selectedEditions}
|
||||||
handleSuccess={this.handleSuccess}
|
handleSuccess={this.handleSuccess}
|
||||||
className="text-center ascribe-button-list collapse-group">
|
className="text-center ascribe-button-list collapse-group">
|
||||||
<DeleteButton
|
<DeleteButton
|
||||||
|
@ -47,7 +47,7 @@ let WalletActionPanel = React.createClass({
|
|||||||
<AclButtonList
|
<AclButtonList
|
||||||
className="text-center ascribe-button-list"
|
className="text-center ascribe-button-list"
|
||||||
availableAcls={availableAcls}
|
availableAcls={availableAcls}
|
||||||
editions={this.props.piece}
|
pieceOrEditions={this.props.piece}
|
||||||
handleSuccess={this.props.loadPiece}>
|
handleSuccess={this.props.loadPiece}>
|
||||||
<AclProxy
|
<AclProxy
|
||||||
aclObject={this.props.currentUser.acl}
|
aclObject={this.props.currentUser.acl}
|
||||||
|
Loading…
Reference in New Issue
Block a user