nav panel: disable TWKN if federation disabled, disable Public and TWKN if privateMode is enabled

This commit is contained in:
Ariadne Conill 2019-11-11 14:18:36 -06:00
parent 21f1637e43
commit 1f9674350c
2 changed files with 5 additions and 3 deletions

View File

@ -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
})
}

View File

@ -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>