Clean feature branch creating new showPublicExternalTimeline value and
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful

depending on it for display of public external timeline links
This commit is contained in:
Ed Poe 2022-11-16 14:31:06 -05:00
parent 169282ea42
commit af3b525442
3 changed files with 3 additions and 1 deletions

View file

@ -92,6 +92,7 @@ export default {
editingAvailable () { return this.$store.state.instance.editingAvailable },
layoutType () { return this.$store.state.interface.layoutType },
privateMode () { return this.$store.state.instance.private },
showPublicExternalTimeline () {return currentUser() || !(privateMode || this.$store.state.instance.restrict_unauthenticated.timelines.federated) },
reverseLayout () {
const { thirdColumnMode, sidebarRight: reverseSetting } = this.$store.getters.mergedConfig
if (this.layoutType !== 'wide') {

View file

@ -67,6 +67,7 @@
/>
</router-link>
<router-link
v-if="showPublicExternalTimeline"
:to="{ name: 'public-external-timeline' }"
class="nav-icon"
>

View file

@ -48,7 +48,7 @@
>{{ $t("nav.public_tl") }}</span>
</router-link>
</li>
<li v-if="federating && (currentUser || !privateMode)">
<li v-if="federating && showPublicExternalTimeline">
<router-link
class="menu-item"
:to="{ name: 'public-external-timeline' }"