mirror of
https://github.com/ascribe/onion.git
synced 2024-06-30 13:41:57 +02:00
fix submit to prize button
This commit is contained in:
parent
a55efc1692
commit
3ff401904b
|
@ -55,10 +55,6 @@ let SignupForm = React.createClass({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getFormData() {
|
|
||||||
return this.getQuery();
|
|
||||||
},
|
|
||||||
|
|
||||||
handleSuccess(response){
|
handleSuccess(response){
|
||||||
if (response.user) {
|
if (response.user) {
|
||||||
let notification = new GlobalNotificationModel(getLangText('Sign up successful'), 'success', 50000);
|
let notification = new GlobalNotificationModel(getLangText('Sign up successful'), 'success', 50000);
|
||||||
|
@ -80,7 +76,7 @@ let SignupForm = React.createClass({
|
||||||
className="ascribe-form-bordered"
|
className="ascribe-form-bordered"
|
||||||
ref='form'
|
ref='form'
|
||||||
url={ApiUrls.users_signup}
|
url={ApiUrls.users_signup}
|
||||||
getFormData={this.getFormData}
|
getFormData={this.getQuery}
|
||||||
handleSuccess={this.handleSuccess}
|
handleSuccess={this.handleSuccess}
|
||||||
buttons={
|
buttons={
|
||||||
<button type="submit" className="btn ascribe-btn ascribe-btn-login">
|
<button type="submit" className="btn ascribe-btn ascribe-btn-login">
|
||||||
|
|
|
@ -39,7 +39,7 @@ let SubmitToPrizeButton = React.createClass({
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<ModalWrapper
|
<ModalWrapper
|
||||||
button={this.getSubmitButton()}
|
trigger={this.getSubmitButton()}
|
||||||
handleSuccess={this.props.handleSuccess}
|
handleSuccess={this.props.handleSuccess}
|
||||||
title={getLangText('Submit to prize')}>
|
title={getLangText('Submit to prize')}>
|
||||||
<PieceSubmitToPrizeForm
|
<PieceSubmitToPrizeForm
|
||||||
|
|
Loading…
Reference in New Issue
Block a user