Fix disable for support (#80)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2024-07-08 18:28:15 +00:00
1 parent 35d2a961dd
commit ef9d0718fb
38 files changed
+500 -413

No files matched your search

+5 -1
View File
@@ -205,7 +205,11 @@ export default defineComponent({
return this.$store?.state?.site?.admins?.includes(this.$store.getters.user?.id);
},
showSupport() {
return this.$store?.state?.site?.features?.support?.enabled;
return (
this.$store?.state?.site?.features?.support?.enabled &&
(this.$store?.state?.site?.features?.support?.discord?.enabled ||
this.$store?.state?.site?.features?.support?.wechat?.enabled)
);
},
showDistribution() {
return (