Add option to hide features panel (About page)

This commit is contained in:
dev92341 2019-02-05 06:12:14 -08:00
parent 1ee762cf6e
commit e3da156162
2 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,9 @@ const About = {
InstanceSpecificPanel, InstanceSpecificPanel,
FeaturesPanel, FeaturesPanel,
TermsOfServicePanel TermsOfServicePanel
},
computed: {
showFeaturesPanel () { return this.$store.state.config.showFeaturesPanel }
} }
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="sidebar"> <div class="sidebar">
<instance-specific-panel></instance-specific-panel> <instance-specific-panel></instance-specific-panel>
<features-panel></features-panel> <features-panel v-if="showFeaturesPanel"></features-panel>
<terms-of-service-panel></terms-of-service-panel> <terms-of-service-panel></terms-of-service-panel>
</div> </div>
</template> </template>