mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
35 lines
766 B
Vue
35 lines
766 B
Vue
<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>
|