summaryrefslogtreecommitdiffstats
path: root/src/views/SettingsPersonal.vue
blob: fea163ea737fbcc15aff8d77e3bba6ff2563d686 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<template>
	<SettingsSection :title="t('social', 'Social')" :description="t('social', 'Configure social .......')">
		<div class="form-field">
			<label>{{ t('social', 'Default post visibility:') }}</label>
			<CheckboxRadioSwitch :checked.sync="defaultVisibility"
				value="PUBLIC" name="style"
				type="radio">
				{{ t('social', 'Public') }}
			</CheckboxRadioSwitch>
			<p class="form-info-checkbox">
				{{ t('social', 'Make your post publicly visible') }}
			</p>

			<CheckboxRadioSwitch :checked.sync="defaultVisibility"
				value="INSTANCE" name="style"
				type="radio">
				{{ t('social', 'Instance Only') }}
			</CheckboxRadioSwitch>
			<p class="form-info-checkbox">
				{{ t('social', 'Make your post visible only to the user of this instance') }}
			</p>

			<CheckboxRadioSwitch :checked.sync="defaultVisibility"
				value="FOLLOWER" name="style"
				type="radio">
				{{ t('social', 'Followers only') }}
			</CheckboxRadioSwitch>
			<p class="form-info-checkbox">
				{{ t('social', 'Make your post visible only to your follower') }}
			</p>
		</div>

		<div class="form-field">
			<CheckboxRadioSwitch :checked.sync="style" value="text" name="style"
				type="switch">
				{{ t('social', 'Require follow requests') }}
			</CheckboxRadioSwitch>
			<p class="form-info-checkbox">
				{{ t('social', 'Manually control who can follow you by approving follow requests') }}
			</p>
		</div>
	</SettingsSection>
</template>

<script>

import CheckboxRadioSwitch from '@nextcloud/vue/dist/Components/CheckboxRadioSwitch'
import SettingsSection from '@nextcloud/vue/dist/Components/SettingsSection'

export default {
	name: 'SetupUser',
	components: {
		CheckboxRadioSwitch,
		SettingsSection,
	},
	data() {
		return {
			defaultVisibility: 'PUBLIC'
		}
	}
}
</script>

<style scoped lang="scss">
.form-info-checkbox {
	padding-left: 26px;
	font-size: 14px;
	margin-top: -2px;
}

.form-info-field {
	font-size: 14px;
	margin-top: -2px;
}

.form-field {
	margin-top: 1.5rem;
}

.form-input {
	width: 300px;
	max-width: 100%;
	display: block;
}
</style>