Added settings to disable analytics

This commit is contained in:
Kylart 2019-06-25 15:29:11 +02:00
parent 9883cd3a83
commit 6bb49934f3
2 changed files with 21 additions and 4 deletions

View File

@ -32,7 +32,8 @@ export default {
darkTheme: true,
autoStart: false,
toTray: false,
center: true
center: true,
analytics: true
},
bounds: {
height: null,

View File

@ -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