diff options
author | HackyMiner <hackyminer@gmail.com> | 2018-09-29 03:53:58 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-09-29 03:53:58 +0800 |
commit | 13a1d4672045371f6366bf1fc48b77cb880eb4f8 (patch) | |
tree | 66b87722afe3b3adc528e71ead28dd007eb16c69 /ui/app/components/dropdowns | |
parent | 49a3d52dd6cbfbbdfd700f7a8898516f11e19045 (diff) | |
download | tangerine-wallet-browser-13a1d4672045371f6366bf1fc48b77cb880eb4f8.tar tangerine-wallet-browser-13a1d4672045371f6366bf1fc48b77cb880eb4f8.tar.gz tangerine-wallet-browser-13a1d4672045371f6366bf1fc48b77cb880eb4f8.tar.bz2 tangerine-wallet-browser-13a1d4672045371f6366bf1fc48b77cb880eb4f8.tar.lz tangerine-wallet-browser-13a1d4672045371f6366bf1fc48b77cb880eb4f8.tar.xz tangerine-wallet-browser-13a1d4672045371f6366bf1fc48b77cb880eb4f8.tar.zst tangerine-wallet-browser-13a1d4672045371f6366bf1fc48b77cb880eb4f8.zip |
support editable customRPC (#5267)
* support editable customRPC #5246
* remove rpcList size restriction
Diffstat (limited to 'ui/app/components/dropdowns')
-rw-r--r-- | ui/app/components/dropdowns/network-dropdown.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/app/components/dropdowns/network-dropdown.js b/ui/app/components/dropdowns/network-dropdown.js index 63a30dd82..b252b25d9 100644 --- a/ui/app/components/dropdowns/network-dropdown.js +++ b/ui/app/components/dropdowns/network-dropdown.js @@ -43,6 +43,9 @@ function mapDispatchToProps (dispatch) { setRpcTarget: (target) => { dispatch(actions.setRpcTarget(target)) }, + delRpcTarget: (target) => { + dispatch(actions.delRpcTarget(target)) + }, showNetworkDropdown: () => dispatch(actions.showNetworkDropdown()), hideNetworkDropdown: () => dispatch(actions.hideNetworkDropdown()), } @@ -300,6 +303,13 @@ NetworkDropdown.prototype.renderCommonRpc = function (rpcList, provider) { color: currentRpcTarget ? '#ffffff' : '#9b9b9b', }, }, rpc), + h('i.fa.fa-times.delete', + { + onClick: (e) => { + e.stopPropagation() + props.delRpcTarget(rpc) + }, + }), ] ) } |