diff --git a/js/components/edition.js b/js/components/edition.js
index e583273d..b3af22f7 100644
--- a/js/components/edition.js
+++ b/js/components/edition.js
@@ -203,6 +203,9 @@ let EditionSummary = React.createClass({
edition: React.PropTypes.object
},
+ getTransferWithdrawData(){
+ return {'bitcoin_id': this.props.edition.bitcoin_id};
+ },
handleSuccess(){
EditionActions.fetchOne(this.props.edition.id);
},
@@ -215,19 +218,23 @@ let EditionSummary = React.createClass({
let status = null;
if (this.props.edition.status.length > 0){
let statusStr = this.props.edition.status.join().replace(/_/, ' ');
- let statusAction = null;
+ status = ;
if (this.props.edition.pending_new_owner && this.props.edition.acl.indexOf('withdraw_transfer') > -1){
- statusAction = (
-
+ status = (
+
);
}
- status = (
-
- {statusAction}
- );
}
let actions = null;
if (this.props.edition.request_action && this.props.edition.request_action.length > 0){
diff --git a/js/constants/api_urls.js b/js/constants/api_urls.js
index e6bbd3af..e1e5d15e 100644
--- a/js/constants/api_urls.js
+++ b/js/constants/api_urls.js
@@ -23,6 +23,7 @@ let apiUrls = {
'ownership_loans_deny': AppConstants.apiEndpoint + 'ownership/loans/deny/',
'ownership_shares': AppConstants.apiEndpoint + 'ownership/shares/',
'ownership_transfers': AppConstants.apiEndpoint + 'ownership/transfers/',
+ 'ownership_transfers_withdraw': AppConstants.apiEndpoint + 'ownership/transfers/withdraw/',
'ownership_unconsigns': AppConstants.apiEndpoint + 'ownership/unconsigns/',
'ownership_unconsigns_deny': AppConstants.apiEndpoint + 'ownership/unconsigns/deny/',
'ownership_unconsigns_request': AppConstants.apiEndpoint + 'ownership/unconsigns/request/',