mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +01:00
ui - account list - fix select account
This commit is contained in:
parent
c2c33ff6cd
commit
9c91da72f5
@ -127,8 +127,13 @@ AccountDetailScreen.prototype.transactionList = function() {
|
|||||||
var transactions = state.transactions
|
var transactions = state.transactions
|
||||||
|
|
||||||
return transactionList(transactions
|
return transactionList(transactions
|
||||||
|
// only transactions that have a hash
|
||||||
|
.filter(tx => tx.hash)
|
||||||
|
// only transactions that are from the current address
|
||||||
.filter(tx => tx.txParams.from === state.address)
|
.filter(tx => tx.txParams.from === state.address)
|
||||||
|
// only transactions that are on the current network
|
||||||
.filter(tx => tx.txParams.metamaskNetworkId === state.networkVersion)
|
.filter(tx => tx.txParams.metamaskNetworkId === state.networkVersion)
|
||||||
|
// sort by recency
|
||||||
.sort((a, b) => b.time - a.time), state.networkVersion)
|
.sort((a, b) => b.time - a.time), state.networkVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,12 +97,12 @@ AccountsScreen.prototype.render = function() {
|
|||||||
var identiconSrc = `data:image/png;base64,${identicon}`
|
var identiconSrc = `data:image/png;base64,${identicon}`
|
||||||
|
|
||||||
return (
|
return (
|
||||||
h('.accounts-list-option.flex-row.flex-space-between', {
|
h('.accounts-list-option.flex-row.flex-space-between.cursor-pointer', {
|
||||||
style: {
|
style: {
|
||||||
flex: '1 0 auto',
|
flex: '1 0 auto',
|
||||||
background: isSelected ? 'white' : 'none',
|
background: isSelected ? 'white' : 'none',
|
||||||
},
|
},
|
||||||
// onClick: state.onClick,
|
onClick: (event) => actions.onShowDetail(identity.address, event),
|
||||||
}, [
|
}, [
|
||||||
|
|
||||||
// account identicon
|
// account identicon
|
||||||
|
@ -250,6 +250,11 @@ app sections
|
|||||||
height: 120px;
|
height: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.accounts-list-option:hover {
|
||||||
|
background: pink;
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
|
|
||||||
.accounts-list-option .identicon-wrapper {
|
.accounts-list-option .identicon-wrapper {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user