side drawer: same treatment

This commit is contained in:
Ariadne Conill 2019-11-11 14:37:14 -06:00
parent cb5f73148a
commit 43d4d17b41
2 changed files with 9 additions and 3 deletions

View file

@ -34,6 +34,12 @@ const SideDrawer = {
},
followRequestCount () {
return this.$store.state.api.followRequests.length
},
privateMode () {
return this.$store.state.instance.private
},
federating () {
return this.$store.state.instance.federationPolicy.federating || true
}
},
methods: {

View file

@ -79,12 +79,12 @@
</span>
</router-link>
</li>
<li @click="toggleDrawer">
<li @click="toggleDrawer" v-if="currentUser || !privateMode">
<router-link to="/main/public">
{{ $t("nav.public_tl") }}
</router-link>
</li>
<li @click="toggleDrawer">
<li @click="toggleDrawer" v-if="(currentUser || !privateMode) && federating">
<router-link to="/main/all">
{{ $t("nav.twkn") }}
</router-link>
@ -99,7 +99,7 @@
</li>
</ul>
<ul>
<li @click="toggleDrawer">
<li @click="toggleDrawer" v-if="currentUser || !privateMode">
<router-link :to="{ name: 'search' }">
{{ $t("nav.search") }}
</router-link>