diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-03-10 03:31:00 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2017-03-10 03:31:00 +0800 |
commit | 1ca6fff31719c4ff8d155dc9f7c88663a6719046 (patch) | |
tree | 094bcd44d28d7816ce662989f137b8a9db6606e4 /ui/app/components | |
parent | e602cb13c5266516aadeb1c6908575d43afe4164 (diff) | |
download | tangerine-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/components')
-rw-r--r-- | ui/app/components/ens-input.js | 10 |
1 files changed, 10 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(), ]) } |