diff options
Diffstat (limited to 'ui/app/accounts/account-panel.js')
-rw-r--r-- | ui/app/accounts/account-panel.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/app/accounts/account-panel.js b/ui/app/accounts/account-panel.js index 5ade7fe0e..8afb7308d 100644 --- a/ui/app/accounts/account-panel.js +++ b/ui/app/accounts/account-panel.js @@ -34,6 +34,7 @@ NewComponent.prototype.render = function() { }, [ h('.identicon-wrapper.flex-column.flex-center.select-none', [ + this.pendingOrNot(), h(Identicon, { address: identity.address }), @@ -61,3 +62,9 @@ NewComponent.prototype.render = function() { ]) ) } + +NewComponent.prototype.pendingOrNot = function() { + const pending = this.props.pending + if (pending.length === 0) return null + return h('.pending-dot', pending.length) +} |