aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-11-11 14:25:38 -0600
committerAriadne Conill <ariadne@dereferenced.org>2019-11-11 14:28:10 -0600
commitcb5f73148a2dc9341d16326ed606d74e818fb61d (patch)
treee04c679dbb8ac9fa37b6fb1f5c8c88674cb91a13
parent1f9674350cdf7455fe5540d377eb327edf1336ce (diff)
app: search API is not available in private mode so disable it
-rw-r--r--src/App.js3
-rw-r--r--src/App.vue1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/App.js b/src/App.js
index 04a40e30..e2b0e6db 100644
--- a/src/App.js
+++ b/src/App.js
@@ -97,7 +97,8 @@ export default {
this.$store.state.instance.instanceSpecificPanelContent
},
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: {
scrollToTop () {
diff --git a/src/App.vue b/src/App.vue
index dbe842ec..1f244b56 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -43,6 +43,7 @@
class="nav-icon mobile-hidden"
@toggled="onSearchBarToggled"
@click.stop.native
+ v-if="currentUser || !privateMode"
/>
<router-link
class="mobile-hidden"