aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordev92341 <jasper92341@hotmail.com>2019-02-05 03:57:11 -0800
committerdev92341 <jasper92341@hotmail.com>2019-02-05 03:57:11 -0800
commitf2c6dd658130be3dbef260dfa03d6bb7c67b7236 (patch)
tree03b303912f1900892cdfb6f81d23c935c700e9ec /src
parent448317338ea585502c0bca03151fc9f3e50aba2e (diff)
Add option to hide features panel
Diffstat (limited to 'src')
-rw-r--r--src/App.js3
-rw-r--r--src/App.vue2
-rw-r--r--src/modules/config.js3
3 files changed, 5 insertions, 3 deletions
diff --git a/src/App.js b/src/App.js
index 83a61d39..18bff2dd 100644
--- a/src/App.js
+++ b/src/App.js
@@ -81,7 +81,8 @@ export default {
},
unseenNotificationsCount () {
return this.unseenNotifications.length
- }
+ },
+ showFeaturesPanel () { return this.$store.state.config.showFeaturesPanel }
},
methods: {
scrollToTop () {
diff --git a/src/App.vue b/src/App.vue
index 833608ea..b999d889 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -29,7 +29,7 @@
<user-panel></user-panel>
<nav-panel></nav-panel>
<instance-specific-panel v-if="showInstanceSpecificPanel"></instance-specific-panel>
- <features-panel v-if="!currentUser"></features-panel>
+ <features-panel v-if="!currentUser &&showFeaturesPanel"></features-panel>
<who-to-follow-panel v-if="currentUser && suggestionsEnabled"></who-to-follow-panel>
<notifications v-if="currentUser"></notifications>
</div>
diff --git a/src/modules/config.js b/src/modules/config.js
index c9528f6f..526a7021 100644
--- a/src/modules/config.js
+++ b/src/modules/config.js
@@ -30,7 +30,8 @@ const defaultState = {
interfaceLanguage: browserLocale,
scopeCopy: undefined, // instance default
subjectLineBehavior: undefined, // instance default
- alwaysShowSubjectInput: undefined // instance default
+ alwaysShowSubjectInput: undefined, // instance default
+ showFeaturesPanel: true
}
const config = {