diff --git a/src/background/startUp/templates/config.js b/src/background/startUp/templates/config.js index bcd338c..461e3ca 100644 --- a/src/background/startUp/templates/config.js +++ b/src/background/startUp/templates/config.js @@ -32,7 +32,8 @@ export default { darkTheme: true, autoStart: false, toTray: false, - center: true + center: true, + analytics: true }, bounds: { height: null, diff --git a/src/components/settings/sections/system.vue b/src/components/settings/sections/system.vue index b2a3fce..9d889db 100644 --- a/src/components/settings/sections/system.vue +++ b/src/components/settings/sections/system.vue @@ -6,7 +6,7 @@ v-card-text v-container(grid-list-lg, pa-0, pb-2) v-layout(row, wrap, justify-space-around, align-center) - v-flex(xs12, sm4) + v-flex(xs12, sm3) v-switch.mt-0( v-model='tray', color='primary', @@ -14,7 +14,7 @@ persistent-hint, hint='*Should KawAnime be in your tray?' ) - v-flex(xs12, sm4) + v-flex(xs12, sm3) v-switch.mt-0( v-model='autoStart', color='primary', @@ -22,7 +22,7 @@ persistent-hint, hint='*Should KawAnime start on boot?' ) - v-flex(xs12, sm4) + v-flex(xs12, sm3) v-switch.mt-0( v-model='darkTheme', color='primary', @@ -30,6 +30,14 @@ persistent-hint, hint='Theme to apply' ) + v-flex(xs12, sm3) + v-switch.mt-0( + v-model='analytics', + color='primary', + :label="analytics ? 'Ok' : 'Nope'" + persistent-hint, + hint='Allows the app to send events to our server (mainly to know how many users we have)' + ) v-container(grid-list-lg, pa-0, mt-3) v-layout(row, wrap, justify-space-around, align-center) @@ -144,6 +152,14 @@ export default { this.setDeepValue('system.darkTheme', val) } }, + analytics: { + get () { + return this.system.analytics + }, + set (val) { + this.setDeepValue('system.analytics', val) + } + }, height: { get () { return this.bounds.height