'use strict'; import React from 'react'; import GlobalNotificationModel from '../../models/global_notification_model'; import GlobalNotificationActions from '../../actions/global_notification_actions'; import Form from '../ascribe_forms/form'; import Property from '../ascribe_forms/property'; import InputCheckbox from '../ascribe_forms/input_checkbox'; import CollapsibleParagraph from '../ascribe_collapsible/collapsible_paragraph'; import CopyrightAssociationForm from '../ascribe_forms/form_copyright_association'; import ApiUrls from '../../constants/api_urls'; import AppConstants from '../../constants/application_constants'; import { getLangText } from '../../utils/lang_utils'; let AccountSettings = React.createClass({ propTypes: { currentUser: React.PropTypes.object.isRequired, loadUser: React.PropTypes.func.isRequired }, handleSuccess(){ this.props.loadUser(); let notification = new GlobalNotificationModel(getLangText('Settings succesfully updated'), 'success', 5000); GlobalNotificationActions.appendGlobalNotification(notification); }, getFormDataProfile(){ return {'email': this.props.currentUser.email}; }, render() { let content = ; let profile = null; if (this.props.currentUser.username) { content = (

); profile = (
{' ' + getLangText('Enable hash option, e.g. slow connections or to keep piece private')}
{/* */}
); } return ( {content} {profile} {/*

*/}
); } }); export default AccountSettings;