Add option to hide features panel

This commit is contained in:
dev92341 2019-02-05 03:57:11 -08:00
parent 448317338e
commit f2c6dd6581
3 changed files with 5 additions and 3 deletions

View File

@ -81,7 +81,8 @@ export default {
}, },
unseenNotificationsCount () { unseenNotificationsCount () {
return this.unseenNotifications.length return this.unseenNotifications.length
} },
showFeaturesPanel () { return this.$store.state.config.showFeaturesPanel }
}, },
methods: { methods: {
scrollToTop () { scrollToTop () {

View File

@ -29,7 +29,7 @@
<user-panel></user-panel> <user-panel></user-panel>
<nav-panel></nav-panel> <nav-panel></nav-panel>
<instance-specific-panel v-if="showInstanceSpecificPanel"></instance-specific-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> <who-to-follow-panel v-if="currentUser && suggestionsEnabled"></who-to-follow-panel>
<notifications v-if="currentUser"></notifications> <notifications v-if="currentUser"></notifications>
</div> </div>

View File

@ -30,7 +30,8 @@ const defaultState = {
interfaceLanguage: browserLocale, interfaceLanguage: browserLocale,
scopeCopy: undefined, // instance default scopeCopy: undefined, // instance default
subjectLineBehavior: undefined, // instance default subjectLineBehavior: undefined, // instance default
alwaysShowSubjectInput: undefined // instance default alwaysShowSubjectInput: undefined, // instance default
showFeaturesPanel: true
} }
const config = { const config = {