|
|
@ -249,6 +249,13 @@ App.prototype.renderNetworkDropdown = function () { |
|
|
|
activeNetworkRender: props.provider.rpcTarget, |
|
|
|
activeNetworkRender: props.provider.rpcTarget, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
h(DropMenuItem, { |
|
|
|
|
|
|
|
label: 'Custom RPC', |
|
|
|
|
|
|
|
closeMenu: () => this.setState({ isNetworkMenuOpen: false }), |
|
|
|
|
|
|
|
action: () => this.props.dispatch(actions.showConfigPage()), |
|
|
|
|
|
|
|
icon: h('i.fa.fa-question-circle.fa-lg', { ariaHidden: true }), |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
this.renderCustomOption(props.provider.rpcTarget), |
|
|
|
this.renderCustomOption(props.provider.rpcTarget), |
|
|
|
]) |
|
|
|
]) |
|
|
|
} |
|
|
|
} |
|
|
@ -501,12 +508,8 @@ App.prototype.toggleMetamaskActive = function () { |
|
|
|
App.prototype.renderCustomOption = function (rpcTarget) { |
|
|
|
App.prototype.renderCustomOption = function (rpcTarget) { |
|
|
|
switch (rpcTarget) { |
|
|
|
switch (rpcTarget) { |
|
|
|
case undefined: |
|
|
|
case undefined: |
|
|
|
return h(DropMenuItem, { |
|
|
|
return null |
|
|
|
label: 'Custom RPC', |
|
|
|
|
|
|
|
closeMenu: () => this.setState({ isNetworkMenuOpen: false }), |
|
|
|
|
|
|
|
action: () => this.props.dispatch(actions.showConfigPage()), |
|
|
|
|
|
|
|
icon: h('i.fa.fa-question-circle.fa-lg', { ariaHidden: true }), |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
case 'http://localhost:8545': |
|
|
|
case 'http://localhost:8545': |
|
|
|
return h(DropMenuItem, { |
|
|
|
return h(DropMenuItem, { |
|
|
|
label: 'Custom RPC', |
|
|
|
label: 'Custom RPC', |
|
|
|