From f2c6dd658130be3dbef260dfa03d6bb7c67b7236 Mon Sep 17 00:00:00 2001 From: dev92341 <jasper92341@hotmail.com> Date: Tue, 5 Feb 2019 03:57:11 -0800 Subject: [PATCH] Add option to hide features panel --- src/App.js | 3 ++- src/App.vue | 2 +- src/modules/config.js | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 83a61d392..18bff2dde 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 833608ea5..b999d8895 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 c9528f6f4..526a70210 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 = { -- GitLab