1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-12-26 07:33:21 -05:00

ofx import: Disable BankID field when importing as Credit Card

This commit is contained in:
Aaron Lindsay 2017-06-04 20:37:45 -04:00
parent fb59f9b3c5
commit d2ebe7b399

View File

@ -178,6 +178,7 @@ const AddEditAccountModal = React.createClass({
</FormGroup> </FormGroup>
); );
} }
var bankIdDisabled = (this.state.ofxaccttype == "CC") ? true : false;
return ( return (
<Modal show={this.props.show} onHide={this.handleCancel}> <Modal show={this.props.show} onHide={this.handleCancel}>
<Modal.Header closeButton> <Modal.Header closeButton>
@ -278,6 +279,7 @@ const AddEditAccountModal = React.createClass({
<Col componentClass={ControlLabel} xs={2}>{ofxBankIdName}</Col> <Col componentClass={ControlLabel} xs={2}>{ofxBankIdName}</Col>
<Col xs={10}> <Col xs={10}>
<FormControl type="text" <FormControl type="text"
disabled={bankIdDisabled}
value={this.state.ofxbankid} value={this.state.ofxbankid}
onChange={this.handleChange} onChange={this.handleChange}
ref="ofxbankid"/> ref="ofxbankid"/>