basic loggedin check for reply filtering

This commit is contained in:
Shpuld Shpuldson 2021-02-25 11:01:11 +02:00
parent 51a78e8b8a
commit 93785634a7
2 changed files with 36 additions and 31 deletions

View file

@ -26,6 +26,9 @@ const TimelineQuickSettings = {
},
computed: {
...mapGetters(['mergedConfig']),
loggedIn () {
return !!this.$store.state.users.currentUser
},
replyVisibilitySelf: {
get () { return this.mergedConfig.replyVisibility === 'self' },
set () { this.setReplyVisibility('self') }

View file

@ -8,6 +8,7 @@
slot="content"
class="timeline-settings-menu dropdown-menu"
>
<div v-if="loggedIn">
<button
class="button-default dropdown-item"
@click="replyVisibilityAll = true"
@ -39,6 +40,7 @@
role="separator"
class="dropdown-divider"
/>
</div>
<button
class="button-default dropdown-item"
@click="hideMedia = !hideMedia"