logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 6689fed5132fac12a696e87d56c2858d64c323a5
parent 4ecbb58086064f2cd546f21b51f22604edfc47e0
Author: Eris <femmediscord@gmail.com>
Date:   Tue, 15 Jun 2021 00:59:36 +0000

Use cleaner instance config check for shoutbox setting

Diffstat:

Msrc/components/settings_modal/tabs/general_tab.js2+-
Msrc/components/settings_modal/tabs/general_tab.vue2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/settings_modal/tabs/general_tab.js b/src/components/settings_modal/tabs/general_tab.js @@ -50,7 +50,7 @@ const GeneralTab = { return this.$store.state.instance.background && !this.$store.state.users.currentUser.background_image }, - shout () { return this.$store.state.shout.channel.state === 'joined' }, + instanceShoutboxPresent () { return this.$store.state.instance.shoutAvailable }, ...SharedComputedObject() } } diff --git a/src/components/settings_modal/tabs/general_tab.vue b/src/components/settings_modal/tabs/general_tab.vue @@ -21,7 +21,7 @@ {{ $t('settings.hide_wallpaper') }} </BooleanSetting> </li> - <li v-if="shout"> + <li v-if="instanceShoutboxPresent"> <BooleanSetting path="hideShoutbox"> {{ $t('general.hide') }} {{ $t('shoutbox.title') }} </BooleanSetting>