1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 20:02:58 +01:00

Merge pull request #1207 from MetaMask/i1206-customrpc

Allow changing custom RPCs from lock screen
This commit is contained in:
Kevin Serrano 2017-03-13 16:57:37 -07:00 committed by GitHub
commit 2a68c89ba7
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@
## Current Master
- Allow sending to ENS names in send form on Ropsten.
- Can now change network to custom RPC URL from lock screen.
## 3.4.0 2017-3-8

View File

@ -266,7 +266,7 @@ App.prototype.renderNetworkDropdown = function () {
this.renderCustomOption(props.provider),
this.renderCommonRpc(rpcList, props.provider),
props.isUnlocked && h(DropMenuItem, {
h(DropMenuItem, {
label: 'Custom RPC',
closeMenu: () => this.setState({ isNetworkMenuOpen: false }),
action: () => this.props.dispatch(actions.showConfigPage()),
@ -400,6 +400,10 @@ App.prototype.renderPrimary = function () {
log.debug('rendering restore vault screen')
return h(HDRestoreVaultScreen, {key: 'HDRestoreVaultScreen'})
case 'config':
log.debug('rendering config screen from unlock screen.')
return h(ConfigScreen, {key: 'config'})
default:
log.debug('rendering locked screen')
return h(UnlockScreen, {key: 'locked'})