diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-12 21:28:47 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-12 23:02:45 +0800 |
commit | d9f98a704e33e1c626196bb490be66deba0dda69 (patch) | |
tree | c3b0ab4c1a2dd6be500c552a2dda07300c052839 | |
parent | 7581a4906f25c22ee773bd8537f277b28600d6cf (diff) | |
download | tangerine-wallet-browser-d9f98a704e33e1c626196bb490be66deba0dda69.tar tangerine-wallet-browser-d9f98a704e33e1c626196bb490be66deba0dda69.tar.gz tangerine-wallet-browser-d9f98a704e33e1c626196bb490be66deba0dda69.tar.bz2 tangerine-wallet-browser-d9f98a704e33e1c626196bb490be66deba0dda69.tar.lz tangerine-wallet-browser-d9f98a704e33e1c626196bb490be66deba0dda69.tar.xz tangerine-wallet-browser-d9f98a704e33e1c626196bb490be66deba0dda69.tar.zst tangerine-wallet-browser-d9f98a704e33e1c626196bb490be66deba0dda69.zip |
Add tooltip to new tab icon in tx-view
-rw-r--r-- | app/_locales/en/messages.json | 3 | ||||
-rw-r--r-- | ui/app/components/tx-view.js | 12 |
2 files changed, 11 insertions, 4 deletions
diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index 4b03c6747..35e28c087 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -599,6 +599,9 @@ "oldUIMessage": { "message": "You have returned to the old UI. You can switch back to the New UI through the option in the top right dropdown menu." }, + "openInTab": { + "message": "Open in tab" + }, "or": { "message": "or", "description": "choice between creating or importing a new account" diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js index e848297e7..654090da6 100644 --- a/ui/app/components/tx-view.js +++ b/ui/app/components/tx-view.js @@ -138,10 +138,14 @@ TxView.prototype.render = function () { h(SelectedAccount), - !isMascara && h('div.open-in-browser', { - onClick: () => global.platform.openExtensionInBrowser(), - }, [h('img', { src: 'images/popout.svg' })]), - + !isMascara && h(Tooltip, { + title: t('openInTab'), + position: 'bottom', + }, [ + h('div.open-in-browser', { + onClick: () => global.platform.openExtensionInBrowser(), + }, [h('img', { src: 'images/popout.svg' })]), + ]), ]), this.renderHeroBalance(), |