mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
set up privacy page in settings
This commit is contained in:
parent
044155a298
commit
6e3bd19267
@ -177,6 +177,7 @@ export default {
|
||||
'termsAndConditionsAgreedVersion',
|
||||
'termsAndConditionsAgreedAt',
|
||||
'allowEmbedIframes',
|
||||
'allowShouts',
|
||||
],
|
||||
boolean: {
|
||||
followedByCurrentUser:
|
||||
|
||||
@ -236,6 +236,10 @@
|
||||
"passwordStrength4": "Sehr sicheres Passwort"
|
||||
}
|
||||
},
|
||||
"privacy": {
|
||||
"name": "Privatsphäre",
|
||||
"make-shouts-public": "Teile von mir empfohlene Artikel öffentlich auf meinem Profil"
|
||||
},
|
||||
"invites": {
|
||||
"name": "Einladungen"
|
||||
},
|
||||
|
||||
@ -237,6 +237,10 @@
|
||||
"passwordStrength4": "Very strong password"
|
||||
}
|
||||
},
|
||||
"privacy": {
|
||||
"name": "Privacy",
|
||||
"make-shouts-public": "Share articles I have shouted on my public profile"
|
||||
},
|
||||
"invites": {
|
||||
"name": "Invites"
|
||||
},
|
||||
|
||||
@ -31,6 +31,10 @@ export default {
|
||||
name: this.$t('settings.security.name'),
|
||||
path: `/settings/security`,
|
||||
},
|
||||
{
|
||||
name: this.$t('settings.privacy.name'),
|
||||
path: 'settings/privacy',
|
||||
},
|
||||
{
|
||||
name: this.$t('settings.social-media.name'),
|
||||
path: `/settings/my-social-media`,
|
||||
|
||||
34
webapp/pages/settings/privacy.vue
Normal file
34
webapp/pages/settings/privacy.vue
Normal file
@ -0,0 +1,34 @@
|
||||
<template>
|
||||
<ds-card :header="$t('settings.privacy.name')">
|
||||
<ds-space margin-bottom="small">
|
||||
<input id="allow-shouts" type="checkbox" v-model="shoutsAllowed" />
|
||||
<label for="allow-shouts">{{ $t('settings.privacy.make-shouts-public') }}</label>
|
||||
</ds-space>
|
||||
<ds-button primary @click="submit">{{ $t('actions.save') }}</ds-button>
|
||||
</ds-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapGetters, mapMutations } from 'vuex'
|
||||
|
||||
export default {
|
||||
computed: {
|
||||
...mapGetters({
|
||||
currentUser: 'auth/user',
|
||||
}),
|
||||
shoutsAllowed: {
|
||||
get() {
|
||||
return this.currentUser.shoutsAllowed || false
|
||||
},
|
||||
set(value) {
|
||||
return value
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
console.log('wohoo')
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Loading…
x
Reference in New Issue
Block a user