aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-09-13 02:48:27 +0800
committerGitHub <noreply@github.com>2017-09-13 02:48:27 +0800
commit0b31d3fc5ecfb3b591f2f17cca05036b05456119 (patch)
tree99662f9420215096eccccb402f55920602d5400a
parent8d945d3fa0f43f02ca4375ad6ee46e4a5d3ea5e6 (diff)
parent111e67fa36edcce9477bc10844d0c9f8ff7b070e (diff)
downloadtangerine-wallet-browser-0b31d3fc5ecfb3b591f2f17cca05036b05456119.tar
tangerine-wallet-browser-0b31d3fc5ecfb3b591f2f17cca05036b05456119.tar.gz
tangerine-wallet-browser-0b31d3fc5ecfb3b591f2f17cca05036b05456119.tar.bz2
tangerine-wallet-browser-0b31d3fc5ecfb3b591f2f17cca05036b05456119.tar.lz
tangerine-wallet-browser-0b31d3fc5ecfb3b591f2f17cca05036b05456119.tar.xz
tangerine-wallet-browser-0b31d3fc5ecfb3b591f2f17cca05036b05456119.tar.zst
tangerine-wallet-browser-0b31d3fc5ecfb3b591f2f17cca05036b05456119.zip
Merge pull request #2074 from MetaMask/export-state-logs
Export state logs instead of copying to clipboard
-rw-r--r--CHANGELOG.md1
-rw-r--r--ui/app/config.js7
2 files changed, 5 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 44aae4cba..89eaefa79 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,7 @@
- Add ability to export private keys as a file.
- Add ability to export seed words as a file.
+- Changed state logs to a file download than a clipboard copy.
## 3.10.0 2017-9-11
diff --git a/ui/app/config.js b/ui/app/config.js
index 62785c49b..d64088ccb 100644
--- a/ui/app/config.js
+++ b/ui/app/config.js
@@ -5,7 +5,8 @@ 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')
+const exportAsFile = require('./util').exportAsFile
+
module.exports = connect(mapStateToProps)(ConfigScreen)
@@ -110,9 +111,9 @@ ConfigScreen.prototype.render = function () {
alignSelf: 'center',
},
onClick (event) {
- copyToClipboard(window.logState())
+ exportAsFile('MetaMask State Logs', window.logState())
},
- }, 'Copy State Logs'),
+ }, 'Download State Logs'),
]),
h('hr.horizontal-line'),