mirror of
https://github.com/ascribe/onion.git
synced 2025-01-20 17:51:25 +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(){
|
getFormData(){
|
||||||
let data = {};
|
let data = {};
|
||||||
console.log(this.refs);
|
|
||||||
for (let ref in this.refs){
|
for (let ref in this.refs){
|
||||||
data[this.refs[ref].props.name] = this.refs[ref].state.value;
|
data[this.refs[ref].props.name] = this.refs[ref].state.value;
|
||||||
}
|
}
|
||||||
console.log(data);
|
|
||||||
if ('getFormData' in this.props){
|
if ('getFormData' in this.props){
|
||||||
data = mergeOptionsWithDuplicates(data, this.props.getFormData());
|
data = mergeOptionsWithDuplicates(data, this.props.getFormData());
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,6 @@ let PieceSubmitToPrizeForm = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
console.log(this.props);
|
|
||||||
return (
|
return (
|
||||||
<Form
|
<Form
|
||||||
ref='form'
|
ref='form'
|
||||||
@ -46,7 +45,7 @@ let PieceSubmitToPrizeForm = React.createClass({
|
|||||||
<div className="modal-footer">
|
<div className="modal-footer">
|
||||||
<img src={AppConstants.baseUrl + 'static/img/ascribe_animated_small.gif'} />
|
<img src={AppConstants.baseUrl + 'static/img/ascribe_animated_small.gif'} />
|
||||||
</div>}>
|
</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>
|
<p>{getLangText('This is an irrevocable action%s', '.')}</p>
|
||||||
</Form>
|
</Form>
|
||||||
);
|
);
|
||||||
|
@ -4,7 +4,10 @@ import AppConstants from '../../../../constants/application_constants';
|
|||||||
|
|
||||||
function getApiUrls(subdomain) {
|
function getApiUrls(subdomain) {
|
||||||
return {
|
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',
|
'Hash of Artwork, title, etc': 'Hash of Artwork, title, etc',
|
||||||
'Owned by SPOOL address': 'Owned by SPOOL address',
|
'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',
|
'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',
|
'DELETE': 'DELETE',
|
||||||
'YES, DELETE': 'YES, DELETE',
|
'YES, DELETE': 'YES, DELETE',
|
||||||
'CLOSE': 'CLOSE',
|
'CLOSE': 'CLOSE',
|
||||||
|
Loading…
Reference in New Issue
Block a user