forked from AkkomaGang/akkoma-fe
nav panel: disable TWKN if federation disabled, disable Public and TWKN if privateMode is enabled
This commit is contained in:
parent
21f1637e43
commit
1f9674350c
2 changed files with 5 additions and 3 deletions
|
@ -13,7 +13,9 @@ const NavPanel = {
|
||||||
computed: mapState({
|
computed: mapState({
|
||||||
currentUser: state => state.users.currentUser,
|
currentUser: state => state.users.currentUser,
|
||||||
chat: state => state.chat.channel,
|
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>
|
</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li v-if="currentUser || !privateMode">
|
||||||
<router-link :to="{ name: 'public-timeline' }">
|
<router-link :to="{ name: 'public-timeline' }">
|
||||||
{{ $t("nav.public_tl") }}
|
{{ $t("nav.public_tl") }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li v-if="(currentUser || !privateMode) && federating">
|
||||||
<router-link :to="{ name: 'public-external-timeline' }">
|
<router-link :to="{ name: 'public-external-timeline' }">
|
||||||
{{ $t("nav.twkn") }}
|
{{ $t("nav.twkn") }}
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
Loading…
Reference in a new issue