mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
subdomain-dependent localhashing
This commit is contained in:
parent
f4ccd417fc
commit
f5732661bd
@ -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"
|
||||
|
@ -13,6 +13,7 @@ let PrizeRegisterPiece = React.createClass({
|
||||
render() {
|
||||
return (
|
||||
<RegisterPiece
|
||||
enableLocalHashing={false}
|
||||
headerMessage={getLangText('Submit to the prize')}
|
||||
submitMessage={getLangText('Submit')}>
|
||||
<Property
|
||||
|
Loading…
Reference in New Issue
Block a user