Commit 43d4d17b authored by kaniini's avatar kaniini

side drawer: same treatment

parent cb5f7314
......@@ -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: {
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment