Use cleaner instance config check for shoutbox setting
This commit is contained in:
parent
4ecbb58086
commit
6689fed513
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user