aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-03-10 03:31:00 +0800
committerKevin Serrano <kevgagser@gmail.com>2017-03-10 03:31:00 +0800
commit1ca6fff31719c4ff8d155dc9f7c88663a6719046 (patch)
tree094bcd44d28d7816ce662989f137b8a9db6606e4 /ui/app
parente602cb13c5266516aadeb1c6908575d43afe4164 (diff)
downloadtangerine-wallet-browser-1ca6fff31719c4ff8d155dc9f7c88663a6719046.tar
tangerine-wallet-browser-1ca6fff31719c4ff8d155dc9f7c88663a6719046.tar.gz
tangerine-wallet-browser-1ca6fff31719c4ff8d155dc9f7c88663a6719046.tar.bz2
tangerine-wallet-browser-1ca6fff31719c4ff8d155dc9f7c88663a6719046.tar.lz
tangerine-wallet-browser-1ca6fff31719c4ff8d155dc9f7c88663a6719046.tar.xz
tangerine-wallet-browser-1ca6fff31719c4ff8d155dc9f7c88663a6719046.tar.zst
tangerine-wallet-browser-1ca6fff31719c4ff8d155dc9f7c88663a6719046.zip
Display owned addresses in datalist.
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/components/ens-input.js10
-rw-r--r--ui/app/send.js2
2 files changed, 12 insertions, 0 deletions
diff --git a/ui/app/components/ens-input.js b/ui/app/components/ens-input.js
index ffc4eab4a..80c8deb22 100644
--- a/ui/app/components/ens-input.js
+++ b/ui/app/components/ens-input.js
@@ -21,6 +21,7 @@ function EnsInput () {
EnsInput.prototype.render = function () {
const props = this.props
const opts = extend(props, {
+ list: 'addresses',
onChange: () => {
const network = this.props.network
let resolverAddress = networkResolvers[network]
@@ -46,6 +47,15 @@ EnsInput.prototype.render = function () {
style: { width: '100%' },
}, [
h('input.large-input', opts),
+ h('datalist',
+ {
+ id: 'addresses',
+ },
+ [
+ Object.keys(props.identities).map((key) => {
+ return h('option', props.identities[key].address)
+ }),
+ ]),
this.ensIcon(),
])
}
diff --git a/ui/app/send.js b/ui/app/send.js
index a281a5fcf..a2ce696cf 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -44,6 +44,7 @@ SendTransactionScreen.prototype.render = function () {
var account = state.account
var identity = state.identity
var network = state.network
+ var identities = state.identities
return (
@@ -153,6 +154,7 @@ SendTransactionScreen.prototype.render = function () {
placeholder: 'Recipient Address',
onChange: this.recipientDidChange.bind(this),
network,
+ identities,
}),
]),