From a40385f87f02a3820b7e4c4fe8da15ccf58b6d2c Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Sat, 22 Jul 2017 13:58:02 +0900 Subject: [PATCH] Add policy --- browser/main/modals/PreferencesModal/InfoTab.js | 11 ++++++++++- browser/main/modals/PreferencesModal/InfoTab.styl | 7 +++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/browser/main/modals/PreferencesModal/InfoTab.js b/browser/main/modals/PreferencesModal/InfoTab.js index 8e1ef357..e92e77a7 100644 --- a/browser/main/modals/PreferencesModal/InfoTab.js +++ b/browser/main/modals/PreferencesModal/InfoTab.js @@ -3,6 +3,7 @@ import CSSModules from 'browser/lib/CSSModules' import styles from './InfoTab.styl' import ConfigManager from 'browser/main/lib/ConfigManager' import store from 'browser/main/store' +import AwsMobileAnalyticsConfig from 'browser/main/lib/AwsMobileAnalyticsConfig' const electron = require('electron') const { shell, remote } = electron @@ -39,6 +40,9 @@ class InfoTab extends React.Component { type: 'SET_CONFIG', config: newConfig }) + if (newConfig.amaEnabled) { + AwsMobileAnalyticsConfig.recordDynamitCustomEvent('DISABLE_AMA') + } } render () { @@ -90,12 +94,17 @@ class InfoTab extends React.Component { License: GPL v3 +
+
Data collectiong policy
+

We collect only the amount of users on Boostnote for DAU and any detail information +

such as a note's content or title is not collected.

+

You can see how it works on GitHub

this.handleConfigChange(e)} checked={this.state.config.amaEnabled} ref='amaEnabled' type='checkbox' /> - Enable to send analytics to our servers + Enable to send analytics to our servers
) diff --git a/browser/main/modals/PreferencesModal/InfoTab.styl b/browser/main/modals/PreferencesModal/InfoTab.styl index 4947c3bc..7279fffd 100644 --- a/browser/main/modals/PreferencesModal/InfoTab.styl +++ b/browser/main/modals/PreferencesModal/InfoTab.styl @@ -41,7 +41,10 @@ a color #4E8EC6 text-decoration none - + +.policy + font-size 20px + body[data-theme="dark"] .root - color alpha($tab--dark-text-color, 80%) \ No newline at end of file + color alpha($tab--dark-text-color, 80%)