forked from AkkomaGang/akkoma-fe
Use cleaner instance config check for shoutbox setting
This commit is contained in:
parent
5047663c51
commit
7e3393b5a2
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ const GeneralTab = {
|
||||||
return this.$store.state.instance.background &&
|
return this.$store.state.instance.background &&
|
||||||
!this.$store.state.users.currentUser.background_image
|
!this.$store.state.users.currentUser.background_image
|
||||||
},
|
},
|
||||||
shout () { return this.$store.state.shout.channel.state === 'joined' },
|
instanceShoutboxPresent () { return this.$store.state.instance.shoutAvailable },
|
||||||
...SharedComputedObject()
|
...SharedComputedObject()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
{{ $t('settings.hide_wallpaper') }}
|
{{ $t('settings.hide_wallpaper') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="shout">
|
<li v-if="instanceShoutboxPresent">
|
||||||
<BooleanSetting path="hideShoutbox">
|
<BooleanSetting path="hideShoutbox">
|
||||||
{{ $t('general.hide') }} {{ $t('shoutbox.title') }}
|
{{ $t('general.hide') }} {{ $t('shoutbox.title') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
|
|
Loading…
Reference in a new issue