aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2017-06-29 01:33:57 +0800
committerGitHub <noreply@github.com>2017-06-29 01:33:57 +0800
commitd2278699dac9432fd40cc988ecb0ae4f7624c552 (patch)
tree6f6b5ed46f292662c68ef7c6ffcc89530dd7ec9b /ui
parentbd523102fe2286456f5916c4c8b0fe46f3f48c73 (diff)
parent1b8a4395ab2a7b84b37676ccf08ba58f4d12fccc (diff)
downloadtangerine-wallet-browser-d2278699dac9432fd40cc988ecb0ae4f7624c552.tar
tangerine-wallet-browser-d2278699dac9432fd40cc988ecb0ae4f7624c552.tar.gz
tangerine-wallet-browser-d2278699dac9432fd40cc988ecb0ae4f7624c552.tar.bz2
tangerine-wallet-browser-d2278699dac9432fd40cc988ecb0ae4f7624c552.tar.lz
tangerine-wallet-browser-d2278699dac9432fd40cc988ecb0ae4f7624c552.tar.xz
tangerine-wallet-browser-d2278699dac9432fd40cc988ecb0ae4f7624c552.tar.zst
tangerine-wallet-browser-d2278699dac9432fd40cc988ecb0ae4f7624c552.zip
Merge pull request #1690 from MetaMask/i1669-StateCopyButton
Add copy state logs button
Diffstat (limited to 'ui')
-rw-r--r--ui/app/config.js28
1 files changed, 28 insertions, 0 deletions
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', {