mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +01:00
Change lumens buttons for AD-1264 changes
This commit is contained in:
parent
cd6673f255
commit
54212627bb
@ -224,7 +224,7 @@ let PieceList = React.createClass({
|
||||
className="ascribe-piece-list-bulk-modal">
|
||||
<BulkModalButtonListType
|
||||
availableAcls={availableAcls}
|
||||
editions={selectedEditions}
|
||||
pieceOrEditions={selectedEditions}
|
||||
handleSuccess={this.handleAclSuccess}
|
||||
className="text-center ascribe-button-list collapse-group">
|
||||
<DeleteButton
|
||||
|
@ -4,8 +4,8 @@ import React from 'react';
|
||||
|
||||
import LumenusSubmitButton from './lumenus_submit_button';
|
||||
|
||||
import AclButton from '../../../../../ascribe_buttons/acl_button';
|
||||
import DeleteButton from '../../../../../ascribe_buttons/delete_button';
|
||||
import ShareButton from '../../../../../ascribe_buttons/acls/share_button';
|
||||
|
||||
import UserActions from '../../../../../../actions/user_actions';
|
||||
import UserStore from '../../../../../../stores/user_store';
|
||||
@ -14,7 +14,7 @@ let LumenusAclButtonList = React.createClass({
|
||||
propTypes: {
|
||||
availableAcls: React.PropTypes.object.isRequired,
|
||||
className: React.PropTypes.string,
|
||||
editions: React.PropTypes.array,
|
||||
pieceOrEditions: React.PropTypes.array,
|
||||
handleSuccess: React.PropTypes.func,
|
||||
children: React.PropTypes.oneOfType([
|
||||
React.PropTypes.arrayOf(React.PropTypes.element),
|
||||
@ -40,19 +40,18 @@ let LumenusAclButtonList = React.createClass({
|
||||
},
|
||||
|
||||
render() {
|
||||
let { availableAcls, className, editions, handleSuccess } = this.props;
|
||||
let { availableAcls, className, pieceOrEditions, handleSuccess } = this.props;
|
||||
return (
|
||||
<div className={className}>
|
||||
<LumenusSubmitButton
|
||||
availableAcls={availableAcls}
|
||||
currentUser={this.state.currentUser}
|
||||
editions={editions}
|
||||
pieceOrEditions={pieceOrEditions}
|
||||
handleSuccess={handleSuccess} />
|
||||
<AclButton
|
||||
action="acl_share"
|
||||
<ShareButton
|
||||
availableAcls={availableAcls}
|
||||
currentUser={this.state.currentUser}
|
||||
pieceOrEditions={editions}
|
||||
pieceOrEditions={pieceOrEditions}
|
||||
handleSuccess={handleSuccess} />
|
||||
{this.props.children}
|
||||
</div>
|
||||
|
@ -3,7 +3,7 @@
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import AclButton from '../../../../../ascribe_buttons/acl_button';
|
||||
import ConsignButton from '../../../../../ascribe_buttons/acls/consign_button';
|
||||
|
||||
import WhitelabelActions from '../../../../../../actions/whitelabel_actions';
|
||||
import WhitelabelStore from '../../../../../../stores/whitelabel_store';
|
||||
@ -14,7 +14,7 @@ let LumenusSubmitButton = React.createClass({
|
||||
propTypes: {
|
||||
availableAcls: React.PropTypes.object.isRequired,
|
||||
currentUser: React.PropTypes.object,
|
||||
editions: React.PropTypes.array,
|
||||
pieceOrEditions: React.PropTypes.array,
|
||||
handleSuccess: React.PropTypes.func,
|
||||
className: React.PropTypes.string,
|
||||
},
|
||||
@ -37,17 +37,16 @@ let LumenusSubmitButton = React.createClass({
|
||||
},
|
||||
|
||||
render() {
|
||||
const { availableAcls, currentUser, className, editions, handleSuccess } = this.props;
|
||||
const { availableAcls, currentUser, className, pieceOrEditions, handleSuccess } = this.props;
|
||||
|
||||
return (
|
||||
<AclButton
|
||||
action='acl_consign'
|
||||
<ConsignButton
|
||||
availableAcls={availableAcls}
|
||||
buttonAcceptName={getLangText('CONSIGN TO LUMENUS')}
|
||||
email={this.state.whitelabel.user}
|
||||
currentUser={currentUser}
|
||||
handleSuccess={handleSuccess}
|
||||
pieceOrEditions={editions}
|
||||
pieceOrEditions={pieceOrEditions}
|
||||
className={className} />
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user