aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/account-menu
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-12 12:23:08 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-12 12:23:08 +0800
commit2a0a7853249284cb27831890f3b62847ea27eb83 (patch)
treeee2ad99eb372bb47993c77791a77c0b99bff50b2 /ui/app/components/account-menu
parent80e875308b4447ed38d7e0f677570d73956dd9de (diff)
downloadtangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.tar
tangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.tar.gz
tangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.tar.bz2
tangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.tar.lz
tangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.tar.xz
tangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.tar.zst
tangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.zip
added tooltip
Diffstat (limited to 'ui/app/components/account-menu')
-rw-r--r--ui/app/components/account-menu/index.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/ui/app/components/account-menu/index.js b/ui/app/components/account-menu/index.js
index c15ecbc9c..c5b577cfd 100644
--- a/ui/app/components/account-menu/index.js
+++ b/ui/app/components/account-menu/index.js
@@ -11,6 +11,7 @@ const Identicon = require('../identicon')
const { formatBalance } = require('../../util')
const { ENVIRONMENT_TYPE_POPUP } = require('../../../../app/scripts/lib/enums')
const { getEnvironmentType } = require('../../../../app/scripts/lib/util')
+const Tooltip = require('../tooltip')
const {
@@ -202,7 +203,17 @@ AccountMenu.prototype.renderRemoveAccount = function (keyring, address) {
// Any account that's not from the HD wallet Keyring can be removed
const type = keyring.type
const isRemovable = type !== 'HD Key Tree'
- return isRemovable ? h('a.remove-account-icon', { onClick: (e) => this.removeAccount(e, address) }, '') : null
+ if (isRemovable) {
+ return h(Tooltip, {
+ title: this.context.t('removeAccount'),
+ position: 'bottom',
+ }, [
+ h('a.remove-account-icon', {
+ onClick: (e) => this.removeAccount(e, address),
+ }, ''),
+ ])
+ }
+ return null
}
AccountMenu.prototype.removeAccount = function (e, address) {