Fix support entry (#79)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2024-07-08 18:15:59 +00:00
1 parent 1f9440ca58
commit 906d5cc10f
4 files changed
+43 -27

No files matched your search

+15 -8
View File
@@ -77,6 +77,9 @@ export default defineComponent({
user() {
return this.$store.getters.user;
},
showSupport() {
return this.$store?.state?.site?.features?.support?.enabled;
},
showSite() {
return this.$store?.state?.site?.admins?.includes(this.$store.getters.user?.id);
},
@@ -144,14 +147,18 @@ export default defineComponent({
href: getBaseUrlPlatform(),
icon: 'fa-solid fa-laptop-code'
},
{
key: 'support',
text: this.$t('common.nav.support'),
callback: () => {
this.operating.help = true;
},
icon: 'fa-solid fa-question'
},
...(this.showSupport
? [
{
key: 'support',
text: this.$t('common.nav.support'),
callback: () => {
this.operating.help = true;
},
icon: 'fa-solid fa-question'
}
]
: []),
{
key: 'logout',
text: this.$t('common.nav.logOut'),