1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 13:41:57 +02:00

subdomain-dependent localhashing

This commit is contained in:
diminator 2015-07-29 15:22:30 +02:00
parent f4ccd417fc
commit f5732661bd
2 changed files with 5 additions and 2 deletions

View File

@ -25,6 +25,7 @@ let RegisterPieceForm = React.createClass({
submitMessage: React.PropTypes.string,
handleSuccess: React.PropTypes.func,
isFineUploaderActive: React.PropTypes.bool,
enableLocalHashing: React.PropTypes.bool,
children: React.PropTypes.element,
onLoggedOut: React.PropTypes.func
},
@ -32,7 +33,8 @@ let RegisterPieceForm = React.createClass({
getDefaultProps() {
return {
headerMessage: getLangText('Register your work'),
submitMessage: getLangText('Register work')
submitMessage: getLangText('Register work'),
enableLocalHashing: true
};
},
@ -89,7 +91,7 @@ let RegisterPieceForm = React.createClass({
render() {
let currentUser = this.state.currentUser;
let enableLocalHashing = currentUser && currentUser.profile ? currentUser.profile.hash_locally : false;
enableLocalHashing = enableLocalHashing && this.props.enableLocalHashing;
return (
<Form
className="ascribe-form-bordered"

View File

@ -13,6 +13,7 @@ let PrizeRegisterPiece = React.createClass({
render() {
return (
<RegisterPiece
enableLocalHashing={false}
headerMessage={getLangText('Submit to the prize')}
submitMessage={getLangText('Submit')}>
<Property