mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-11-03 18:13:27 -05:00 
			
		
		
		
	ofx import: Disable BankID field when importing as Credit Card
This commit is contained in:
		@@ -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"/>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user