diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-03-02 02:04:25 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2017-03-02 02:04:25 +0800 |
commit | e66035254f1778ec8e614cabecaf1a9493509888 (patch) | |
tree | ab0ab43a9792075dfd2e1a23a95ea35a86d6d962 /ui/app | |
parent | 0a3849ec8477b4a61c50d715bd72b3e8f1ea8b66 (diff) | |
parent | 6fb33853f2ceeb6ef48988a7ee9334dfc87a8223 (diff) | |
download | tangerine-wallet-browser-e66035254f1778ec8e614cabecaf1a9493509888.tar tangerine-wallet-browser-e66035254f1778ec8e614cabecaf1a9493509888.tar.gz tangerine-wallet-browser-e66035254f1778ec8e614cabecaf1a9493509888.tar.bz2 tangerine-wallet-browser-e66035254f1778ec8e614cabecaf1a9493509888.tar.lz tangerine-wallet-browser-e66035254f1778ec8e614cabecaf1a9493509888.tar.xz tangerine-wallet-browser-e66035254f1778ec8e614cabecaf1a9493509888.tar.zst tangerine-wallet-browser-e66035254f1778ec8e614cabecaf1a9493509888.zip |
More conflict resolution.
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/actions.js | 2 | ||||
-rw-r--r-- | ui/app/app.js | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index 337f05248..cda987cad 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -671,7 +671,7 @@ function markAccountsFound() { function setRpcTarget (newRpc) { return (dispatch) => { - if (global.METAMASK_DEBUG) console.log(`background.setRpcTarget`) + log.debug(`background.setRpcTarget`) background.setRpcTarget(newRpc) background.updateFrequentRpcList(newRpc, (frequentRpcList) => { const value = { diff --git a/ui/app/app.js b/ui/app/app.js index d8519def7..20f948770 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -501,6 +501,12 @@ App.prototype.renderCustomOption = function (provider) { const { rpcTarget, type } = provider if (type !== 'rpc') return null + // Concatenate long URLs + let label = rpcTarget + if (rpcTarget.length > 31) { + label = label.substr(0, 34) + '...' + } + switch (rpcTarget) { case 'http://localhost:8545': @@ -508,7 +514,8 @@ App.prototype.renderCustomOption = function (provider) { default: return h(DropMenuItem, { - label: `${rpcTarget}`, + label, + key: rpcTarget, closeMenu: () => this.setState({ isNetworkMenuOpen: false }), icon: h('i.fa.fa-question-circle.fa-lg'), activeNetworkRender: 'custom', @@ -526,6 +533,7 @@ App.prototype.renderCommonRpc = function (rpcList, provider) { } else { return h(DropMenuItem, { label: rpc, + key: rpc, closeMenu: () => this.setState({ isNetworkMenuOpen: false }), action: () => props.dispatch(actions.setRpcTarget(rpc)), icon: h('i.fa.fa-question-circle.fa-lg'), |