diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-06-29 01:22:12 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-06-29 01:22:51 +0800 |
commit | 1b8a4395ab2a7b84b37676ccf08ba58f4d12fccc (patch) | |
tree | 80731c65ef3020b685ba31ab53915029cfa20e5e | |
parent | ddba2af4152668a5767ce874a4727873c72bac72 (diff) | |
download | tangerine-wallet-browser-1b8a4395ab2a7b84b37676ccf08ba58f4d12fccc.tar tangerine-wallet-browser-1b8a4395ab2a7b84b37676ccf08ba58f4d12fccc.tar.gz tangerine-wallet-browser-1b8a4395ab2a7b84b37676ccf08ba58f4d12fccc.tar.bz2 tangerine-wallet-browser-1b8a4395ab2a7b84b37676ccf08ba58f4d12fccc.tar.lz tangerine-wallet-browser-1b8a4395ab2a7b84b37676ccf08ba58f4d12fccc.tar.xz tangerine-wallet-browser-1b8a4395ab2a7b84b37676ccf08ba58f4d12fccc.tar.zst tangerine-wallet-browser-1b8a4395ab2a7b84b37676ccf08ba58f4d12fccc.zip |
Add copy state logs button
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | ui/app/config.js | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d8a814b9..19bb14e85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Fix error for invalid seed words. - Prevent users from submitting two duplicate transactions by disabling submit. - Allow Dapps to specify gas price as hex string. +- Add button for copying state logs to clipboard. ## 3.7.8 2017-6-12 diff --git a/ui/app/config.js b/ui/app/config.js index d7be26757..62785c49b 100644 --- a/ui/app/config.js +++ b/ui/app/config.js @@ -5,6 +5,7 @@ const connect = require('react-redux').connect const actions = require('./actions') const currencies = require('./conversion.json').rows const validUrl = require('valid-url') +const copyToClipboard = require('copy-to-clipboard') module.exports = connect(mapStateToProps)(ConfigScreen) @@ -85,8 +86,35 @@ ConfigScreen.prototype.render = function () { }, }, 'Save'), ]), + h('hr.horizontal-line'), + currentConversionInformation(metamaskState, state), + + h('hr.horizontal-line'), + + h('div', { + style: { + marginTop: '20px', + }, + }, [ + h('p', { + style: { + fontFamily: 'Montserrat Light', + fontSize: '13px', + }, + }, `State logs contain your public account addresses and sent transactions.`), + h('br'), + h('button', { + style: { + alignSelf: 'center', + }, + onClick (event) { + copyToClipboard(window.logState()) + }, + }, 'Copy State Logs'), + ]), + h('hr.horizontal-line'), h('div', { |