1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-12-26 23:42:29 -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() { 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>