diff options
author | Bobby Dresser <bobby.dresser@gmail.com> | 2018-06-12 05:28:57 +0800 |
---|---|---|
committer | Bobby Dresser <bobby.dresser@gmail.com> | 2018-06-12 05:28:57 +0800 |
commit | 4196b16f06a45d5ebfbf8599cc2f96c9b690e29b (patch) | |
tree | be582bf0d403e08e5a045b8fe977b899b605b92a /ui | |
parent | b7a469681bdadd77f8c09da254db91dad820a7a1 (diff) | |
download | tangerine-wallet-browser-4196b16f06a45d5ebfbf8599cc2f96c9b690e29b.tar tangerine-wallet-browser-4196b16f06a45d5ebfbf8599cc2f96c9b690e29b.tar.gz tangerine-wallet-browser-4196b16f06a45d5ebfbf8599cc2f96c9b690e29b.tar.bz2 tangerine-wallet-browser-4196b16f06a45d5ebfbf8599cc2f96c9b690e29b.tar.lz tangerine-wallet-browser-4196b16f06a45d5ebfbf8599cc2f96c9b690e29b.tar.xz tangerine-wallet-browser-4196b16f06a45d5ebfbf8599cc2f96c9b690e29b.tar.zst tangerine-wallet-browser-4196b16f06a45d5ebfbf8599cc2f96c9b690e29b.zip |
add help link to eth_sign warning
Diffstat (limited to 'ui')
-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; |