1
0
mirror of https://github.com/ascribe/onion.git synced 2025-02-14 21:10:27 +01:00

inputcheckbox for loan

settings container with profile update
This commit is contained in:
diminator 2015-07-28 09:49:53 +02:00
parent b105e77009
commit 6d71c20ea8

View File

@ -66,7 +66,7 @@ let AccountSettings = React.createClass({
handleSuccess(){ handleSuccess(){
UserActions.fetchCurrentUser(); UserActions.fetchCurrentUser();
let notification = new GlobalNotificationModel(getLangText('username succesfully updated'), 'success', 5000); let notification = new GlobalNotificationModel(getLangText('Settings succesfully updated'), 'success', 5000);
GlobalNotificationActions.appendGlobalNotification(notification); GlobalNotificationActions.appendGlobalNotification(notification);
}, },
@ -114,8 +114,7 @@ let AccountSettings = React.createClass({
className="ascribe-settings-property-collapsible-toggle" className="ascribe-settings-property-collapsible-toggle"
style={{paddingBottom: 0}}> style={{paddingBottom: 0}}>
<InputCheckbox <InputCheckbox
defaultValue={true} defaultValue={this.state.currentUser.profile.hash_locally}>
required={false}>
<span> <span>
{' ' + getLangText('Enable hash option for slow connections. ' + {' ' + getLangText('Enable hash option for slow connections. ' +
'Computes and uploads a hash of the work instead.')} 'Computes and uploads a hash of the work instead.')}