aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/new-account-modal.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/modals/new-account-modal.js')
-rw-r--r--ui/app/components/modals/new-account-modal.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/app/components/modals/new-account-modal.js b/ui/app/components/modals/new-account-modal.js
index 8d67762ac..910f3c0ca 100644
--- a/ui/app/components/modals/new-account-modal.js
+++ b/ui/app/components/modals/new-account-modal.js
@@ -19,6 +19,10 @@ function mapDispatchToProps (dispatch) {
hideModal: () => {
dispatch(actions.hideModal())
},
+ createAccount: () => {
+ dispatch(actions.addNewAccount())
+ dispatch(actions.hideModal())
+ },
}
}
@@ -60,7 +64,9 @@ NewAccountModal.prototype.render = function () {
]),
h('div.new-account-modal-content.button', {}, [
- h('button.btn-clear', {}, [
+ h('button.btn-clear', {
+ onClick: this.props.createAccount
+ }, [
'SAVE',
]),
]),