mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +01:00
override api_urls and fix wording
This commit is contained in:
parent
188f8ebf9c
commit
56389a542e
@ -56,11 +56,9 @@ let Form = React.createClass({
|
||||
|
||||
getFormData(){
|
||||
let data = {};
|
||||
console.log(this.refs);
|
||||
for (let ref in this.refs){
|
||||
data[this.refs[ref].props.name] = this.refs[ref].state.value;
|
||||
}
|
||||
console.log(data);
|
||||
if ('getFormData' in this.props){
|
||||
data = mergeOptionsWithDuplicates(data, this.props.getFormData());
|
||||
}
|
||||
|
@ -23,7 +23,6 @@ let PieceSubmitToPrizeForm = React.createClass({
|
||||
},
|
||||
|
||||
render() {
|
||||
console.log(this.props);
|
||||
return (
|
||||
<Form
|
||||
ref='form'
|
||||
@ -46,7 +45,7 @@ let PieceSubmitToPrizeForm = React.createClass({
|
||||
<div className="modal-footer">
|
||||
<img src={AppConstants.baseUrl + 'static/img/ascribe_animated_small.gif'} />
|
||||
</div>}>
|
||||
<p>{getLangText('Are you sure you want to submit to the art prize?')}</p>
|
||||
<p>{getLangText('Are you sure you want to submit to the prize?')}</p>
|
||||
<p>{getLangText('This is an irrevocable action%s', '.')}</p>
|
||||
</Form>
|
||||
);
|
||||
|
@ -4,7 +4,10 @@ import AppConstants from '../../../../constants/application_constants';
|
||||
|
||||
function getApiUrls(subdomain) {
|
||||
return {
|
||||
'pieces_list': AppConstants.apiEndpoint + 'prize/' + subdomain + '/pieces/'
|
||||
'pieces_list': AppConstants.apiEndpoint + 'prize/' + subdomain + '/pieces/',
|
||||
'users_login': AppConstants.apiEndpoint + 'prize/' + subdomain + '/users/login/',
|
||||
'users_signup': AppConstants.apiEndpoint + 'prize/' + subdomain + '/users/',
|
||||
'user': AppConstants.apiEndpoint + 'prize/' + subdomain + '/users/'
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -148,7 +148,7 @@ const languages = {
|
||||
'Hash of Artwork, title, etc': 'Hash of Artwork, title, etc',
|
||||
'Owned by SPOOL address': 'Owned by SPOOL address',
|
||||
'Are you sure you would like to permanently delete this edition%s': 'Are you sure you would like to permanently delete this edition%s',
|
||||
'This is an irrevocable action%s': 'This is an irrevocable action%s',
|
||||
'This is an irrevocable action%s': 'You can not undo this action%s',
|
||||
'DELETE': 'DELETE',
|
||||
'YES, DELETE': 'YES, DELETE',
|
||||
'CLOSE': 'CLOSE',
|
||||
|
Loading…
Reference in New Issue
Block a user