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:
parent
7e7b356c8f
commit
9cea031b46
@ -129,6 +129,7 @@ const AddEditAccountModal = React.createClass({
|
|||||||
},
|
},
|
||||||
render: function() {
|
render: function() {
|
||||||
var headerText = (this.props.editAccount != null) ? "Edit" : "Create New";
|
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";
|
var rootName = (this.props.editAccount != null) ? "Top-level Account" : "New Top-level Account";
|
||||||
return (
|
return (
|
||||||
<Modal show={this.props.show} onHide={this.handleCancel}>
|
<Modal show={this.props.show} onHide={this.handleCancel}>
|
||||||
@ -186,7 +187,7 @@ const AddEditAccountModal = React.createClass({
|
|||||||
<Modal.Footer>
|
<Modal.Footer>
|
||||||
<ButtonGroup className="pull-right">
|
<ButtonGroup className="pull-right">
|
||||||
<Button onClick={this.handleCancel} bsStyle="warning">Cancel</Button>
|
<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>
|
</ButtonGroup>
|
||||||
</Modal.Footer>
|
</Modal.Footer>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
Loading…
Reference in New Issue
Block a user