forked from AkkomaGang/akkoma-fe
side drawer: same treatment
This commit is contained in:
parent
cb5f73148a
commit
43d4d17b41
2 changed files with 9 additions and 3 deletions
|
@ -34,6 +34,12 @@ const SideDrawer = {
|
||||||
},
|
},
|
||||||
followRequestCount () {
|
followRequestCount () {
|
||||||
return this.$store.state.api.followRequests.length
|
return this.$store.state.api.followRequests.length
|
||||||
|
},
|
||||||
|
privateMode () {
|
||||||
|
return this.$store.state.instance.private
|
||||||
|
},
|
||||||
|
federating () {
|
||||||
|
return this.$store.state.instance.federationPolicy.federating || true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -79,12 +79,12 @@
|
||||||
</span>
|
</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
<li @click="toggleDrawer">
|
<li @click="toggleDrawer" v-if="currentUser || !privateMode">
|
||||||
<router-link to="/main/public">
|
<router-link to="/main/public">
|
||||||
{{ $t("nav.public_tl") }}
|
{{ $t("nav.public_tl") }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
<li @click="toggleDrawer">
|
<li @click="toggleDrawer" v-if="(currentUser || !privateMode) && federating">
|
||||||
<router-link to="/main/all">
|
<router-link to="/main/all">
|
||||||
{{ $t("nav.twkn") }}
|
{{ $t("nav.twkn") }}
|
||||||
</router-link>
|
</router-link>
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul>
|
<ul>
|
||||||
<li @click="toggleDrawer">
|
<li @click="toggleDrawer" v-if="currentUser || !privateMode">
|
||||||
<router-link :to="{ name: 'search' }">
|
<router-link :to="{ name: 'search' }">
|
||||||
{{ $t("nav.search") }}
|
{{ $t("nav.search") }}
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
Loading…
Reference in a new issue