diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2017-09-26 10:55:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-26 10:55:56 +0800 |
commit | 0d4433ed58ea7c5f9518170b7be44b194041eba7 (patch) | |
tree | 6635c935a75e69ed8d33703f6b174511df0b9cab /ui/app/components | |
parent | fc3e071ad699f6c3586a20f12e06e6f456b0eea3 (diff) | |
parent | 5f6ec6aa982101bed57d9a8766330af71a274183 (diff) | |
download | tangerine-wallet-browser-0d4433ed58ea7c5f9518170b7be44b194041eba7.tar.gz tangerine-wallet-browser-0d4433ed58ea7c5f9518170b7be44b194041eba7.tar.zst tangerine-wallet-browser-0d4433ed58ea7c5f9518170b7be44b194041eba7.zip |
Merge branch 'NewUI-flat' into MM-57-use-gas-estimator
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/modals/export-private-key-modal.js | 22 | ||||
-rw-r--r-- | ui/app/components/send-token/index.js | 5 |
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. |