Feature/Add _Allow user discovery services_ preference

This commit is contained in:
Hakaba Hitoyo 2019-09-26 22:31:28 +00:00 committed by kaniini
parent 4369ce6f1b
commit 194dd88118
6 changed files with 14 additions and 0 deletions

View file

@ -45,6 +45,7 @@ const UserSettings = {
hideFollowersCount: this.$store.state.users.currentUser.hide_followers_count,
showRole: this.$store.state.users.currentUser.show_role,
role: this.$store.state.users.currentUser.role,
discoverable: this.$store.state.users.currentUser.discoverable,
pickAvatarBtnVisible: true,
bannerUploading: false,
backgroundUploading: false,
@ -144,6 +145,7 @@ const UserSettings = {
no_rich_text: this.newNoRichText,
hide_follows: this.hideFollows,
hide_followers: this.hideFollowers,
discoverable: this.discoverable,
hide_follows_count: this.hideFollowsCount,
hide_followers_count: this.hideFollowersCount,
show_role: this.showRole

View file

@ -131,6 +131,14 @@
for="account-show-role"
>{{ $t('settings.show_moderator_badge') }}</label>
</p>
<p>
<input
id="discoverable"
v-model="discoverable"
type="checkbox"
>
<label for="discoverable">{{ $t('settings.discoverable') }}</label>
</p>
<button
:disabled="newName && newName.length === 0"
class="btn btn-default"