diff options
author | kumavis <kumavis@users.noreply.github.com> | 2017-09-13 02:48:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-13 02:48:27 +0800 |
commit | 0b31d3fc5ecfb3b591f2f17cca05036b05456119 (patch) | |
tree | 99662f9420215096eccccb402f55920602d5400a /ui/app | |
parent | 8d945d3fa0f43f02ca4375ad6ee46e4a5d3ea5e6 (diff) | |
parent | 111e67fa36edcce9477bc10844d0c9f8ff7b070e (diff) | |
download | tangerine-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
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/config.js | 7 |
1 files changed, 4 insertions, 3 deletions
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'), |