commit: 7e3393b5a2eda7f696781853123de8df965ffbf2
parent 5047663c513841ea708f58e672bf193a55a96a82
Author: Eris <femmediscord@gmail.com>
Date: Tue, 15 Jun 2021 00:59:36 +0000
Use cleaner instance config check for shoutbox setting
Diffstat:
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>