aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/modals/export-private-key-modal.js22
-rw-r--r--ui/app/components/send-token/index.js5
2 files changed, 26 insertions, 1 deletions
diff --git a/ui/app/components/modals/export-private-key-modal.js b/ui/app/components/modals/export-private-key-modal.js
index bbcd25e0d..28b988f5a 100644
--- a/ui/app/components/modals/export-private-key-modal.js
+++ b/ui/app/components/modals/export-private-key-modal.js
@@ -37,5 +37,27 @@ ExportPrivateKeyModal.prototype.render = function () {
h('div.account-modal-divider'),
+ h('span.modal-body-title', 'Download Private Keys'),
+
+ h('div.private-key-password', {}, [
+ h('span.private-key-password-label', 'Type Your Password'),
+
+ h('input.private-key-password-input', {
+ type: 'password',
+ placeholder: 'Type password',
+ }),
+ ]),
+
+ h('div.private-key-password-warning', `Warning: Never disclose this key.
+ Anyone with your private keys can take steal any assets held in your
+ account.`
+ ),
+
+ h('div.export-private-key-buttons', {}, [
+ h('button.btn-clear.btn-cancel', {}, 'Cancel'),
+
+ h('button.btn-clear', 'Download'),
+ ]),
+
])
}
diff --git a/ui/app/components/send-token/index.js b/ui/app/components/send-token/index.js
index e4f13a874..379f63883 100644
--- a/ui/app/components/send-token/index.js
+++ b/ui/app/components/send-token/index.js
@@ -240,7 +240,10 @@ SendTokenScreen.prototype.renderToAddressInput = function () {
this.setErrorsFor('to')
this.estimateGasAndPrice()
},
- onFocus: () => this.clearErrorsFor('to'),
+ onFocus: event => {
+ if (to) event.target.select()
+ this.clearErrorsFor('to')
+ },
}),
h('datalist#addresses', [
// Corresponds to the addresses owned.