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

Fix button text for 'Edit Account' modal

This commit is contained in:
Aaron Lindsay 2015-07-05 21:44:53 -04:00
parent 7e7b356c8f
commit 9cea031b46

View File

@ -129,6 +129,7 @@ const AddEditAccountModal = React.createClass({
},
render: function() {
var headerText = (this.props.editAccount != null) ? "Edit" : "Create New";
var buttonText = (this.props.editAccount != null) ? "Save Changes" : "Create Account";
var rootName = (this.props.editAccount != null) ? "Top-level Account" : "New Top-level Account";
return (
<Modal show={this.props.show} onHide={this.handleCancel}>
@ -186,7 +187,7 @@ const AddEditAccountModal = React.createClass({
<Modal.Footer>
<ButtonGroup className="pull-right">
<Button onClick={this.handleCancel} bsStyle="warning">Cancel</Button>
<Button onClick={this.handleSubmit} bsStyle="success">Create Account</Button>
<Button onClick={this.handleSubmit} bsStyle="success">{buttonText}</Button>
</ButtonGroup>
</Modal.Footer>
</Modal>