add new setting

This commit is contained in:
Roman Kostetskii 2019-06-28 15:45:29 +03:00
parent 221db9f210
commit 887999cefa
5 changed files with 9 additions and 0 deletions

View File

@ -39,6 +39,7 @@ const UserSettings = {
newBio: unescape(this.$store.state.users.currentUser.description),
newLocked: this.$store.state.users.currentUser.locked,
newNoRichText: this.$store.state.users.currentUser.no_rich_text,
newSkipThreadContainment: this.$store.state.users.currentUser.skip_thread_containment,
newDefaultScope: this.$store.state.users.currentUser.default_scope,
hideFollows: this.$store.state.users.currentUser.hide_follows,
hideFollowers: this.$store.state.users.currentUser.hide_followers,
@ -140,6 +141,7 @@ const UserSettings = {
display_name: this.newName,
default_scope: this.newDefaultScope,
no_rich_text: this.newNoRichText,
skip_thread_containment: this.newSkipThreadContainment,
hide_follows: this.hideFollows,
hide_followers: this.hideFollowers,
show_role: this.showRole

View File

@ -54,6 +54,10 @@
<input type="checkbox" v-model="newNoRichText" id="account-no-rich-text">
<label for="account-no-rich-text">{{$t('settings.no_rich_text_description')}}</label>
</p>
<p>
<input type="checkbox" v-model="newSkipThreadContainment" id="account-skip-thread-containment">
<label for="account-skip-Thread-Containment">{{$t('settings.skip_thread_containment_description')}}</label>
</p>
<p>
<input type="checkbox" v-model="hideFollows" id="account-hide-follows">
<label for="account-hide-follows">{{$t('settings.hide_follows_description')}}</label>

View File

@ -268,6 +268,7 @@
"notification_visibility_likes": "Likes",
"notification_visibility_mentions": "Mentions",
"notification_visibility_repeats": "Repeats",
"skip_thread_containment_description": "Hide replies to inaccessible posts",
"no_rich_text_description": "Strip rich text formatting from all posts",
"no_blocks": "No blocks",
"no_mutes": "No mutes",

View File

@ -174,6 +174,7 @@
"notification_visibility_likes": "Лайки",
"notification_visibility_mentions": "Упоминания",
"notification_visibility_repeats": "Повторы",
"skip_thread_containment_description": "Прятать ответы к недоступным постам",
"no_rich_text_description": "Убрать форматирование из всех постов",
"hide_follows_description": "Не показывать кого я читаю",
"hide_followers_description": "Не показывать кто читает меня",

View File

@ -90,6 +90,7 @@ export const parseUser = (data) => {
if (data.source.pleroma) {
output.no_rich_text = data.source.pleroma.no_rich_text
output.show_role = data.source.pleroma.show_role
output.skip_thread_containment = data.source.skip_thread_containment
}
}