1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Create distinct labels and names for addresses.

This commit is contained in:
Kevin Serrano 2017-03-09 13:07:38 -08:00
parent 1ca6fff317
commit d270cbc9d2
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
2 changed files with 8 additions and 2 deletions

View File

@ -5,7 +5,9 @@ const extend = require('xtend')
class PreferencesController {
constructor (opts = {}) {
const initState = extend({ frequentRpcList: [] }, opts.initState)
const initState = extend({
frequentRpcList: [],
}, opts.initState)
this.store = new ObservableStore(initState)
}

View File

@ -53,7 +53,11 @@ EnsInput.prototype.render = function () {
},
[
Object.keys(props.identities).map((key) => {
return h('option', props.identities[key].address)
let identity = props.identities[key]
return h('option', {
value: identity.address,
label: identity.name,
})
}),
]),
this.ensIcon(),