basic loggedin check for reply filtering
This commit is contained in:
parent
51a78e8b8a
commit
93785634a7
|
@ -26,6 +26,9 @@ const TimelineQuickSettings = {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['mergedConfig']),
|
...mapGetters(['mergedConfig']),
|
||||||
|
loggedIn () {
|
||||||
|
return !!this.$store.state.users.currentUser
|
||||||
|
},
|
||||||
replyVisibilitySelf: {
|
replyVisibilitySelf: {
|
||||||
get () { return this.mergedConfig.replyVisibility === 'self' },
|
get () { return this.mergedConfig.replyVisibility === 'self' },
|
||||||
set () { this.setReplyVisibility('self') }
|
set () { this.setReplyVisibility('self') }
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
slot="content"
|
slot="content"
|
||||||
class="timeline-settings-menu dropdown-menu"
|
class="timeline-settings-menu dropdown-menu"
|
||||||
>
|
>
|
||||||
|
<div v-if="loggedIn">
|
||||||
<button
|
<button
|
||||||
class="button-default dropdown-item"
|
class="button-default dropdown-item"
|
||||||
@click="replyVisibilityAll = true"
|
@click="replyVisibilityAll = true"
|
||||||
|
@ -39,6 +40,7 @@
|
||||||
role="separator"
|
role="separator"
|
||||||
class="dropdown-divider"
|
class="dropdown-divider"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
<button
|
<button
|
||||||
class="button-default dropdown-item"
|
class="button-default dropdown-item"
|
||||||
@click="hideMedia = !hideMedia"
|
@click="hideMedia = !hideMedia"
|
||||||
|
|
Loading…
Reference in New Issue