diff options
author | bobby dresser <bobby.dresser@gmail.com> | 2018-06-14 07:59:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-14 07:59:17 +0800 |
commit | 8cb5f57c30f4c13c8b1528174372a7d2deef8c6d (patch) | |
tree | 0551e4abd8f553f6ee381c2ef547e3ea3d62630b | |
parent | 451d05a400302d443e13d4d75a7094bf20e86d97 (diff) | |
parent | 4196b16f06a45d5ebfbf8599cc2f96c9b690e29b (diff) | |
download | tangerine-wallet-browser-8cb5f57c30f4c13c8b1528174372a7d2deef8c6d.tar tangerine-wallet-browser-8cb5f57c30f4c13c8b1528174372a7d2deef8c6d.tar.gz tangerine-wallet-browser-8cb5f57c30f4c13c8b1528174372a7d2deef8c6d.tar.bz2 tangerine-wallet-browser-8cb5f57c30f4c13c8b1528174372a7d2deef8c6d.tar.lz tangerine-wallet-browser-8cb5f57c30f4c13c8b1528174372a7d2deef8c6d.tar.xz tangerine-wallet-browser-8cb5f57c30f4c13c8b1528174372a7d2deef8c6d.tar.zst tangerine-wallet-browser-8cb5f57c30f4c13c8b1528174372a7d2deef8c6d.zip |
Merge pull request #4550 from MetaMask/bmd/sign-warning-helplink
add help link to eth_sign warning
-rw-r--r-- | ui/app/components/signature-request.js | 9 | ||||
-rw-r--r-- | ui/app/css/itcss/components/request-signature.scss | 6 |
2 files changed, 14 insertions, 1 deletions
diff --git a/ui/app/components/signature-request.js b/ui/app/components/signature-request.js index ab780dcf4..2a3e929fe 100644 --- a/ui/app/components/signature-request.js +++ b/ui/app/components/signature-request.js @@ -178,7 +178,14 @@ SignatureRequest.prototype.renderBody = function () { rows = data } else if (type === 'eth_sign') { rows = [{ name: this.context.t('message'), value: data }] - notice = this.context.t('signNotice') + notice = [this.context.t('signNotice'), + h('span.request-signature__help-link', { + onClick: () => { + global.platform.openWindow({ + url: 'https://consensys.zendesk.com/hc/en-us/articles/360004427792', + }) + }, + }, this.context.t('learnMore'))] } return h('div.request-signature__body', {}, [ diff --git a/ui/app/css/itcss/components/request-signature.scss b/ui/app/css/itcss/components/request-signature.scss index e6916c418..4707ff60e 100644 --- a/ui/app/css/itcss/components/request-signature.scss +++ b/ui/app/css/itcss/components/request-signature.scss @@ -183,6 +183,12 @@ padding: 6px 18px 15px; } + &__help-link { + cursor: pointer; + text-decoration: underline; + color: $curious-blue; + } + &__footer { width: 100%; display: flex; |