aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEris <femmediscord@gmail.com>2021-06-15 00:59:36 +0000
committerHenry Jameson <me@hjkos.com>2021-06-17 13:21:25 +0300
commit6689fed5132fac12a696e87d56c2858d64c323a5 (patch)
tree52f542bd486560cda10ad09c3588afb0fd1bc9b2
parent4ecbb58086064f2cd546f21b51f22604edfc47e0 (diff)
Use cleaner instance config check for shoutbox setting
-rw-r--r--src/components/settings_modal/tabs/general_tab.js2
-rw-r--r--src/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
index be0fc768..eeda61bf 100644
--- 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
index 6e647cdc..d08dfae3 100644
--- 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>