Hide staff panel if private mode which is empty anyway

This commit is contained in:
eris 2022-08-30 01:15:05 +00:00
parent 311b38f9fb
commit 7a60b3a455
2 changed files with 3 additions and 1 deletions

View file

@ -13,6 +13,8 @@ const About = {
MRFTransparencyPanel MRFTransparencyPanel
}, },
computed: { computed: {
currentUser () { return this.$store.state.users.currentUser },
privateMode () { return this.$store.state.instance.private },
showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel }, showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel },
showInstanceSpecificPanel () { showInstanceSpecificPanel () {
return this.$store.state.instance.showInstanceSpecificPanel && return this.$store.state.instance.showInstanceSpecificPanel &&

View file

@ -1,7 +1,7 @@
<template> <template>
<div class="column-inner"> <div class="column-inner">
<!--<instance-specific-panel v-if="showInstanceSpecificPanel" />--> <!--<instance-specific-panel v-if="showInstanceSpecificPanel" />-->
<staff-panel /> <staff-panel v-if="currentUser || !privateMode" />
<terms-of-service-panel /> <terms-of-service-panel />
<MRFTransparencyPanel /> <MRFTransparencyPanel />
<features-panel v-if="showFeaturesPanel" /> <features-panel v-if="showFeaturesPanel" />