diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-09-13 00:34:48 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-09-13 00:34:48 +0800 |
commit | ad14e9338d2e08b0fd0e371e7a81e20f8f9e90f7 (patch) | |
tree | c3a60de112ce622b251f3a3063f613eecb91ad81 /ui | |
parent | 08f227607ae4a9c476ebac4218c7573d53f90697 (diff) | |
download | tangerine-wallet-browser-ad14e9338d2e08b0fd0e371e7a81e20f8f9e90f7.tar tangerine-wallet-browser-ad14e9338d2e08b0fd0e371e7a81e20f8f9e90f7.tar.gz tangerine-wallet-browser-ad14e9338d2e08b0fd0e371e7a81e20f8f9e90f7.tar.bz2 tangerine-wallet-browser-ad14e9338d2e08b0fd0e371e7a81e20f8f9e90f7.tar.lz tangerine-wallet-browser-ad14e9338d2e08b0fd0e371e7a81e20f8f9e90f7.tar.xz tangerine-wallet-browser-ad14e9338d2e08b0fd0e371e7a81e20f8f9e90f7.tar.zst tangerine-wallet-browser-ad14e9338d2e08b0fd0e371e7a81e20f8f9e90f7.zip |
Convert state logs into a download.
Diffstat (limited to 'ui')
-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'), |