mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-12-23 14:45:09 +01:00
nav panel: disable TWKN if federation disabled, disable Public and TWKN if privateMode is enabled
This commit is contained in:
parent
21f1637e43
commit
1f9674350c
@ -13,7 +13,9 @@ const NavPanel = {
|
||||
computed: mapState({
|
||||
currentUser: state => state.users.currentUser,
|
||||
chat: state => state.chat.channel,
|
||||
followRequestCount: state => state.api.followRequests.length
|
||||
followRequestCount: state => state.api.followRequests.length,
|
||||
privateMode: state => state.instance.private,
|
||||
federating: state => state.instance.federationPolicy.federating || true
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -28,12 +28,12 @@
|
||||
</span>
|
||||
</router-link>
|
||||
</li>
|
||||
<li>
|
||||
<li v-if="currentUser || !privateMode">
|
||||
<router-link :to="{ name: 'public-timeline' }">
|
||||
{{ $t("nav.public_tl") }}
|
||||
</router-link>
|
||||
</li>
|
||||
<li>
|
||||
<li v-if="(currentUser || !privateMode) && federating">
|
||||
<router-link :to="{ name: 'public-external-timeline' }">
|
||||
{{ $t("nav.twkn") }}
|
||||
</router-link>
|
||||
|
Loading…
Reference in New Issue
Block a user