forked from AkkomaGang/akkoma-fe
app: search API is not available in private mode so disable it
This commit is contained in:
parent
1f9674350c
commit
cb5f73148a
2 changed files with 3 additions and 1 deletions
|
@ -97,7 +97,8 @@ export default {
|
||||||
this.$store.state.instance.instanceSpecificPanelContent
|
this.$store.state.instance.instanceSpecificPanelContent
|
||||||
},
|
},
|
||||||
showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel },
|
showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel },
|
||||||
isMobileLayout () { return this.$store.state.interface.mobileLayout }
|
isMobileLayout () { return this.$store.state.interface.mobileLayout },
|
||||||
|
privateMode () { return this.$store.state.instance.private }
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
scrollToTop () {
|
scrollToTop () {
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
class="nav-icon mobile-hidden"
|
class="nav-icon mobile-hidden"
|
||||||
@toggled="onSearchBarToggled"
|
@toggled="onSearchBarToggled"
|
||||||
@click.stop.native
|
@click.stop.native
|
||||||
|
v-if="currentUser || !privateMode"
|
||||||
/>
|
/>
|
||||||
<router-link
|
<router-link
|
||||||
class="mobile-hidden"
|
class="mobile-hidden"
|
||||||
|
|
Loading…
Reference in a new issue