mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
bf0a2aeefb
async emails
35 lines
1010 B
JavaScript
35 lines
1010 B
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
|
|
import fetch from '../../utils/fetch';
|
|
import ApiUrls from '../../constants/api_urls';
|
|
import FormMixin from '../../mixins/form_mixin';
|
|
|
|
let EditionDeleteForm = React.createClass({
|
|
|
|
mixins: [FormMixin],
|
|
|
|
url() {
|
|
return fetch.prepareUrl(ApiUrls.edition_delete, {edition_id: this.getBitcoinIds().join()});
|
|
},
|
|
httpVerb(){
|
|
return 'delete';
|
|
},
|
|
|
|
renderForm () {
|
|
return (
|
|
<div className="modal-body">
|
|
<p>Are you sure you would like to permanently delete this edition?</p>
|
|
<p>This is an irrevocable action.</p>
|
|
<div className="modal-footer">
|
|
<button type="submit" className="btn btn-ascribe-inv" onClick={this.submit}>YES, DELETE</button>
|
|
<button className="btn btn-ascribe" onClick={this.props.onRequestHide}>CLOSE</button>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
});
|
|
|
|
|
|
export default EditionDeleteForm; |