diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-24 16:07:51 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-24 16:07:51 +0800 |
commit | 6daa8343234cf2a0bc32ed434ee3acae6100fd38 (patch) | |
tree | bed67a581829e87b60d39f4b773b35c1f13fcd54 /ui/app/components/network.js | |
parent | 966e4cfd1189f7c115cfc552796c1353060d2125 (diff) | |
download | tangerine-wallet-browser-6daa8343234cf2a0bc32ed434ee3acae6100fd38.tar tangerine-wallet-browser-6daa8343234cf2a0bc32ed434ee3acae6100fd38.tar.gz tangerine-wallet-browser-6daa8343234cf2a0bc32ed434ee3acae6100fd38.tar.bz2 tangerine-wallet-browser-6daa8343234cf2a0bc32ed434ee3acae6100fd38.tar.lz tangerine-wallet-browser-6daa8343234cf2a0bc32ed434ee3acae6100fd38.tar.xz tangerine-wallet-browser-6daa8343234cf2a0bc32ed434ee3acae6100fd38.tar.zst tangerine-wallet-browser-6daa8343234cf2a0bc32ed434ee3acae6100fd38.zip |
Disable network dropdown on conf tx screen
Diffstat (limited to 'ui/app/components/network.js')
-rw-r--r-- | ui/app/components/network.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/components/network.js b/ui/app/components/network.js index b24505750..229d02e36 100644 --- a/ui/app/components/network.js +++ b/ui/app/components/network.js @@ -64,13 +64,18 @@ Network.prototype.render = function () { return ( h('div.network-component.pointer', { className: classnames('network-component pointer', { + 'network-component--disabled': this.props.disabled, 'ethereum-network': providerName === 'mainnet', 'ropsten-test-network': providerName === 'ropsten' || parseInt(networkNumber) === 3, 'kovan-test-network': providerName === 'kovan', 'rinkeby-test-network': providerName === 'rinkeby', }), title: hoverText, - onClick: (event) => this.props.onClick(event), + onClick: (event) => { + if (!this.props.disabled) { + this.props.onClick(event) + } + }, }, [ (function () { switch (iconName) { |