mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Disable account selection dropdown from account details
This commit is contained in:
parent
67f10d660f
commit
ecb09fcc0a
@ -128,6 +128,7 @@ AccountDetailScreen.prototype.render = function () {
|
|||||||
selected,
|
selected,
|
||||||
network,
|
network,
|
||||||
identities: props.identities,
|
identities: props.identities,
|
||||||
|
enableAccountOptions: true,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
@ -145,7 +146,6 @@ AccountDetailScreen.prototype.render = function () {
|
|||||||
|
|
||||||
h('div', {
|
h('div', {
|
||||||
style: {
|
style: {
|
||||||
marginTop: '-10px',
|
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
textOverflow: 'ellipsis',
|
textOverflow: 'ellipsis',
|
||||||
paddingTop: '3px',
|
paddingTop: '3px',
|
||||||
@ -153,7 +153,6 @@ AccountDetailScreen.prototype.render = function () {
|
|||||||
fontSize: '13px',
|
fontSize: '13px',
|
||||||
fontFamily: 'Montserrat Light',
|
fontFamily: 'Montserrat Light',
|
||||||
textRendering: 'geometricPrecision',
|
textRendering: 'geometricPrecision',
|
||||||
marginTop: '10px',
|
|
||||||
marginBottom: '15px',
|
marginBottom: '15px',
|
||||||
color: '#AEAEAE',
|
color: '#AEAEAE',
|
||||||
},
|
},
|
||||||
|
@ -183,7 +183,7 @@ class AccountDropdowns extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
const { style } = this.props
|
const { style, enableAccountsSelector, enableAccountOptions } = this.props
|
||||||
const { optionsMenuActive, accountSelectorActive } = this.state
|
const { optionsMenuActive, accountSelectorActive } = this.state
|
||||||
|
|
||||||
return h(
|
return h(
|
||||||
@ -192,10 +192,12 @@ class AccountDropdowns extends Component {
|
|||||||
style: style,
|
style: style,
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
h(
|
enableAccountsSelector && h(
|
||||||
'i.fa.fa-angle-down',
|
'i.fa.fa-angle-down',
|
||||||
{
|
{
|
||||||
style: {},
|
style: {
|
||||||
|
fontSize: '1.8em',
|
||||||
|
},
|
||||||
onClick: (event) => {
|
onClick: (event) => {
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
this.setState({
|
this.setState({
|
||||||
@ -206,10 +208,13 @@ class AccountDropdowns extends Component {
|
|||||||
},
|
},
|
||||||
this.renderAccountSelector(),
|
this.renderAccountSelector(),
|
||||||
),
|
),
|
||||||
h(
|
enableAccountOptions && h(
|
||||||
'i.fa.fa-ellipsis-h',
|
'i.fa.fa-ellipsis-h',
|
||||||
{
|
{
|
||||||
style: { 'marginLeft': '10px'},
|
style: {
|
||||||
|
marginRight: '0.5em',
|
||||||
|
fontSize: '1.8em',
|
||||||
|
},
|
||||||
onClick: (event) => {
|
onClick: (event) => {
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
this.setState({
|
this.setState({
|
||||||
@ -225,6 +230,11 @@ class AccountDropdowns extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AccountDropdowns.defaultProps = {
|
||||||
|
enableAccountsSelector: false,
|
||||||
|
enableAccountOptions: false,
|
||||||
|
}
|
||||||
|
|
||||||
AccountDropdowns.propTypes = {
|
AccountDropdowns.propTypes = {
|
||||||
identities: PropTypes.objectOf(PropTypes.object),
|
identities: PropTypes.objectOf(PropTypes.object),
|
||||||
selected: PropTypes.string,
|
selected: PropTypes.string,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user