1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-28 08:37:59 +02:00

override api_urls and fix wording

This commit is contained in:
Tim Daubenschütz 2015-07-15 00:14:17 +02:00
parent 188f8ebf9c
commit 56389a542e
4 changed files with 6 additions and 6 deletions

View File

@ -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());
}

View File

@ -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>
);

View File

@ -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/'
};
}

View File

@ -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',