1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

change the default expand of additional settings

This commit is contained in:
Tim Daubenschütz 2015-07-08 17:46:52 +02:00
parent bfb40bb19e
commit e9f0af3e72

View File

@ -131,6 +131,10 @@ let AccountSettings = React.createClass({
let BitcoinWalletSettings = React.createClass({ let BitcoinWalletSettings = React.createClass({
propTypes: {
defaultExpanded: React.PropTypes.bool
},
getInitialState() { getInitialState() {
return WalletSettingsStore.getState(); return WalletSettingsStore.getState();
}, },
@ -172,7 +176,7 @@ let BitcoinWalletSettings = React.createClass({
<CollapsibleParagraph <CollapsibleParagraph
title={getLangText('Crypto Wallet')} title={getLangText('Crypto Wallet')}
show={true} show={true}
defaultExpanded={true}> defaultExpanded={this.props.defaultExpanded}>
{content} {content}
</CollapsibleParagraph> </CollapsibleParagraph>
); );
@ -180,6 +184,9 @@ let BitcoinWalletSettings = React.createClass({
}); });
let LoanContractSettings = React.createClass({ let LoanContractSettings = React.createClass({
propTypes: {
defaultExpanded: React.PropTypes.bool
},
render() { render() {
@ -187,7 +194,7 @@ let LoanContractSettings = React.createClass({
<CollapsibleParagraph <CollapsibleParagraph
title="Loan Contract Settings" title="Loan Contract Settings"
show={true} show={true}
defaultExpanded={true}> defaultExpanded={this.props.defaultExpanded}>
<FileUploader /> <FileUploader />
</CollapsibleParagraph> </CollapsibleParagraph>
); );
@ -249,6 +256,10 @@ let FileUploader = React.createClass({
}); });
let APISettings = React.createClass({ let APISettings = React.createClass({
propTypes: {
defaultExpanded: React.PropTypes.bool
},
getInitialState() { getInitialState() {
return ApplicationStore.getState(); return ApplicationStore.getState();
}, },
@ -312,7 +323,7 @@ let APISettings = React.createClass({
<CollapsibleParagraph <CollapsibleParagraph
title={getLangText('API Integration')} title={getLangText('API Integration')}
show={true} show={true}
defaultExpanded={true}> defaultExpanded={this.props.defaultExpanded}>
<Form <Form
url={apiUrls.applications} url={apiUrls.applications}
handleSuccess={this.handleCreateSuccess}> handleSuccess={this.handleCreateSuccess}>