diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-05-24 01:43:59 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-05-24 01:43:59 +0800 |
commit | 97d19f0f7970feb6fb3170fd85211d0c765cabea (patch) | |
tree | 3e25945bd50397cdb218b1b60a3290bdfb5fdacb /ui/app | |
parent | 959038132a6780f1dd7a4db3696d3fdbaad83b88 (diff) | |
parent | 1491e6fe0728b0c82cdf5b8dcaa18ef0adbcd55d (diff) | |
download | tangerine-wallet-browser-97d19f0f7970feb6fb3170fd85211d0c765cabea.tar tangerine-wallet-browser-97d19f0f7970feb6fb3170fd85211d0c765cabea.tar.gz tangerine-wallet-browser-97d19f0f7970feb6fb3170fd85211d0c765cabea.tar.bz2 tangerine-wallet-browser-97d19f0f7970feb6fb3170fd85211d0c765cabea.tar.lz tangerine-wallet-browser-97d19f0f7970feb6fb3170fd85211d0c765cabea.tar.xz tangerine-wallet-browser-97d19f0f7970feb6fb3170fd85211d0c765cabea.tar.zst tangerine-wallet-browser-97d19f0f7970feb6fb3170fd85211d0c765cabea.zip |
Merge branch 'master' into i1412-decimalizethegas
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/hex-as-decimal-input.js | 2 | ||||
-rw-r--r-- | ui/app/components/transaction-list-item-icon.js | 16 | ||||
-rw-r--r-- | ui/app/components/transaction-list-item.js | 19 |
3 files changed, 31 insertions, 6 deletions
diff --git a/ui/app/components/hex-as-decimal-input.js b/ui/app/components/hex-as-decimal-input.js index e37aaa8c3..4a71e9585 100644 --- a/ui/app/components/hex-as-decimal-input.js +++ b/ui/app/components/hex-as-decimal-input.js @@ -139,7 +139,7 @@ HexAsDecimalInput.prototype.constructWarning = function () { } function hexify (decimalString) { - const hexBN = new BN(decimalString, 10) + const hexBN = new BN(parseInt(decimalString), 10) return '0x' + hexBN.toString('hex') } diff --git a/ui/app/components/transaction-list-item-icon.js b/ui/app/components/transaction-list-item-icon.js index d63cae259..431054340 100644 --- a/ui/app/components/transaction-list-item-icon.js +++ b/ui/app/components/transaction-list-item-icon.js @@ -1,6 +1,7 @@ const Component = require('react').Component const h = require('react-hyperscript') const inherits = require('util').inherits +const Tooltip = require('./tooltip') const Identicon = require('./identicon') @@ -32,11 +33,16 @@ TransactionIcon.prototype.render = function () { }) case 'submitted': - return h('i.fa.fa-ellipsis-h', { - style: { - fontSize: '27px', - }, - }) + return h(Tooltip, { + title: 'Pending', + position: 'bottom', + }, [ + h('i.fa.fa-ellipsis-h', { + style: { + fontSize: '27px', + }, + }), + ]) } if (isMsg) { diff --git a/ui/app/components/transaction-list-item.js b/ui/app/components/transaction-list-item.js index c2a585003..dbda66a31 100644 --- a/ui/app/components/transaction-list-item.js +++ b/ui/app/components/transaction-list-item.js @@ -8,6 +8,7 @@ const explorerLink = require('../../lib/explorer-link') const CopyButton = require('./copyButton') const vreme = new (require('vreme')) const Tooltip = require('./tooltip') +const numberToBN = require('number-to-bn') const TransactionIcon = require('./transaction-list-item-icon') const ShiftListItem = require('./shift-list-item') @@ -39,6 +40,8 @@ TransactionListItem.prototype.render = function () { txParams = transaction.msgParams } + const nonce = txParams.nonce ? numberToBN(txParams.nonce).toString(10) : '' + const isClickable = ('hash' in transaction && isLinkable) || isPending return ( h(`.transaction-list-item.flex-row.flex-space-between${isClickable ? '.pointer' : ''}`, { @@ -69,6 +72,22 @@ TransactionListItem.prototype.render = function () { ]), ]), + h(Tooltip, { + title: 'Transaction Number', + position: 'bottom', + }, [ + h('span', { + style: { + display: 'flex', + cursor: 'normal', + flexDirection: 'column', + alignItems: 'center', + justifyContent: 'center', + padding: '10px', + }, + }, nonce), + ]), + h('.flex-column', {style: {width: '200px', overflow: 'hidden'}}, [ domainField(txParams), h('div', date), |