From 47b0b385f41d925d38642329937423cf0022865d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 5 Dec 2018 11:37:01 +0300 Subject: Added user option to hide instance-specific panel, rearranged config screen to better categorize it / adjustments to language selector --- src/components/settings/settings.js | 4 ++++ src/components/settings/settings.vue | 14 +++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) (limited to 'src/components/settings') diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js index 91a2014a..19bd2e5b 100644 --- a/src/components/settings/settings.js +++ b/src/components/settings/settings.js @@ -13,6 +13,7 @@ const settings = { hideAttachmentsLocal: user.hideAttachments, hideAttachmentsInConvLocal: user.hideAttachmentsInConv, hideNsfwLocal: user.hideNsfw, + hideISPLocal: user.hideISP, hidePostStatsLocal: typeof user.hidePostStats === 'undefined' ? instance.hidePostStats : user.hidePostStats, @@ -83,6 +84,9 @@ const settings = { hideNsfwLocal (value) { this.$store.dispatch('setOption', { name: 'hideNsfw', value }) }, + hideISPLocal (value) { + this.$store.dispatch('setOption', { name: 'hideISP', value }) + }, 'notificationVisibilityLocal.likes' (value) { this.$store.dispatch('setOption', { name: 'notificationVisibility', value: this.$store.state.config.notificationVisibility }) }, diff --git a/src/components/settings/settings.vue b/src/components/settings/settings.vue index de506e4d..d11140c6 100644 --- a/src/components/settings/settings.vue +++ b/src/components/settings/settings.vue @@ -14,15 +14,23 @@
{{ $t('settings.saving_ok') }}
- +
-

{{ $t('settings.interfaceLanguage') }}

- +

{{ $t('settings.interface') }}

+
    +
  • + +
  • +
  • + + +
  • +

{{$t('nav.timeline')}}

-- cgit v1.2.3-70-g09d2