aboutsummaryrefslogtreecommitdiffstats
path: root/old-ui
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2018-10-11 02:52:26 +0800
committerDan Finlay <542863+danfinlay@users.noreply.github.com>2018-11-06 07:07:09 +0800
commit226601a956594d00817cdb1fa5214242aae7936c (patch)
treeca3b8a64b685599ef8ef26d4bf3396170949d122 /old-ui
parentbfcb73ad533b7c2acea012a586c2a391811faf03 (diff)
downloadtangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.tar
tangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.tar.gz
tangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.tar.bz2
tangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.tar.lz
tangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.tar.xz
tangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.tar.zst
tangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.zip
EIP-1102: add user privacy option
Diffstat (limited to 'old-ui')
-rw-r--r--old-ui/app/config.js16
1 files changed, 11 insertions, 5 deletions
diff --git a/old-ui/app/config.js b/old-ui/app/config.js
index 15b0294e6..2a0643919 100644
--- a/old-ui/app/config.js
+++ b/old-ui/app/config.js
@@ -210,7 +210,7 @@ ConfigScreen.prototype.render = function () {
fontFamily: 'Montserrat Light',
fontSize: '13px',
},
- }, 'Clear approved website data so all sites must request approval again.'),
+ }, 'Clear privacy data so all websites must request access to view account information again.'),
h('br'),
h('button', {
style: {
@@ -220,7 +220,7 @@ ConfigScreen.prototype.render = function () {
event.preventDefault()
state.dispatch(actions.clearApprovedOrigins())
},
- }, 'Clear approval data'),
+ }, 'Clear privacy data'),
]),
h('hr.horizontal-line'),
@@ -235,7 +235,10 @@ ConfigScreen.prototype.render = function () {
fontFamily: 'Montserrat Light',
fontSize: '13px',
},
- }, 'Expose accounts to the current website. This is useful for legacy dapps.'),
+ }, metamaskState.featureFlags.privacyMode ?
+ 'Websites will be able to view your account information.' :
+ 'Websites must request access to view your account information.'
+ ),
h('br'),
h('button', {
style: {
@@ -243,9 +246,12 @@ ConfigScreen.prototype.render = function () {
},
onClick (event) {
event.preventDefault()
- state.dispatch(actions.forceInjection())
+ state.dispatch(actions.setFeatureFlag('privacyMode', !metamaskState.featureFlags.privacyMode))
},
- }, 'Expose accounts'),
+ }, metamaskState.featureFlags.privacyMode ?
+ 'Disable privacy mode' :
+ 'Enable privacy mode'
+ ),
]),
h('hr.horizontal-line'),