diff options
| author | dev92341 <jasper92341@hotmail.com> | 2019-02-05 06:12:14 -0800 |
|---|---|---|
| committer | dev92341 <jasper92341@hotmail.com> | 2019-02-05 06:12:14 -0800 |
| commit | e3da156162ce04d987935eeb4649f0aa51590cf2 (patch) | |
| tree | e6a5a64ff6f2dccab4f29ac7f98c805e4faef0cd | |
| parent | 1ee762cf6e09c12c21d5ba23295a128db493f6fc (diff) | |
Add option to hide features panel (About page)
| -rw-r--r-- | src/components/about/about.js | 3 | ||||
| -rw-r--r-- | src/components/about/about.vue | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/about/about.js b/src/components/about/about.js index b4433b4e..b1ce3c7d 100644 --- a/src/components/about/about.js +++ b/src/components/about/about.js @@ -7,6 +7,9 @@ const About = { InstanceSpecificPanel, FeaturesPanel, TermsOfServicePanel + }, + computed: { + showFeaturesPanel () { return this.$store.state.config.showFeaturesPanel } } } diff --git a/src/components/about/about.vue b/src/components/about/about.vue index bf87e0b8..13dec87c 100644 --- a/src/components/about/about.vue +++ b/src/components/about/about.vue @@ -1,7 +1,7 @@ <template> <div class="sidebar"> <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> </div> </template> |
