mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
aclbuttonlist willmount
This commit is contained in:
parent
6078410240
commit
265a7573ce
@ -14,7 +14,7 @@ let AclButtonList = React.createClass({
|
|||||||
this.setState(state);
|
this.setState(state);
|
||||||
},
|
},
|
||||||
|
|
||||||
componentDidMount() {
|
componentWillMount() {
|
||||||
UserActions.fetchCurrentUser();
|
UserActions.fetchCurrentUser();
|
||||||
UserStore.listen(this.onChange);
|
UserStore.listen(this.onChange);
|
||||||
},
|
},
|
||||||
|
@ -3,7 +3,7 @@ import React from 'react';
|
|||||||
import ResourceViewer from './ascribe_media/resource_viewer';
|
import ResourceViewer from './ascribe_media/resource_viewer';
|
||||||
|
|
||||||
import EditionActions from '../actions/edition_actions'
|
import EditionActions from '../actions/edition_actions'
|
||||||
import AclButton from './ascribe_buttons/acl_button'
|
import AclButtonList from './ascribe_buttons/acl_button_list'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the component that implements display-specific functionality
|
* This is the component that implements display-specific functionality
|
||||||
@ -56,20 +56,10 @@ let EditionDetails = React.createClass({
|
|||||||
<EditionDetailProperty label="id" value={ this.props.edition.bitcoin_id } />
|
<EditionDetailProperty label="id" value={ this.props.edition.bitcoin_id } />
|
||||||
<EditionDetailProperty label="owner" value={ this.props.edition.owner } />
|
<EditionDetailProperty label="owner" value={ this.props.edition.owner } />
|
||||||
<br/>
|
<br/>
|
||||||
<AclButton
|
<AclButtonList
|
||||||
availableAcls={["transfer"]}
|
availableAcls={["transfer", "consign", "loan", "share"]}
|
||||||
action="transfer"
|
|
||||||
editions={[this.props.edition]}
|
editions={[this.props.edition]}
|
||||||
currentUser={this.props.currentUser}
|
handleSuccess={this.handleSuccess} />
|
||||||
handleSuccess={this.handleSuccess}
|
|
||||||
/>
|
|
||||||
<AclButton
|
|
||||||
availableAcls={["consign"]}
|
|
||||||
action="consign"
|
|
||||||
editions={[this.props.edition]}
|
|
||||||
currentUser={this.props.currentUser}
|
|
||||||
handleSuccess={this.handleSuccess}
|
|
||||||
/>
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user