From 56389a542e8bbb0bc168f358a6076f231cda10bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Wed, 15 Jul 2015 00:14:17 +0200 Subject: [PATCH] override api_urls and fix wording --- js/components/ascribe_forms/form.js | 2 -- js/components/ascribe_forms/form_submit_to_prize.js | 3 +-- js/components/whitelabel/prize/constants/api_urls.js | 5 ++++- js/constants/languages.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/components/ascribe_forms/form.js b/js/components/ascribe_forms/form.js index c7fbb588..7e0d6b42 100644 --- a/js/components/ascribe_forms/form.js +++ b/js/components/ascribe_forms/form.js @@ -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()); } diff --git a/js/components/ascribe_forms/form_submit_to_prize.js b/js/components/ascribe_forms/form_submit_to_prize.js index b4f45193..6f2b6427 100644 --- a/js/components/ascribe_forms/form_submit_to_prize.js +++ b/js/components/ascribe_forms/form_submit_to_prize.js @@ -23,7 +23,6 @@ let PieceSubmitToPrizeForm = React.createClass({ }, render() { - console.log(this.props); return (
}> -

{getLangText('Are you sure you want to submit to the art prize?')}

+

{getLangText('Are you sure you want to submit to the prize?')}

{getLangText('This is an irrevocable action%s', '.')}

); diff --git a/js/components/whitelabel/prize/constants/api_urls.js b/js/components/whitelabel/prize/constants/api_urls.js index e341e27c..1ed70a50 100644 --- a/js/components/whitelabel/prize/constants/api_urls.js +++ b/js/components/whitelabel/prize/constants/api_urls.js @@ -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/' }; } diff --git a/js/constants/languages.js b/js/constants/languages.js index f05065dd..c8fa6e1f 100644 --- a/js/constants/languages.js +++ b/js/constants/languages.js @@ -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',