diff --git a/change/@acedatacloud-nexior-319bfdde-acc8-4f5f-9f8b-80b27fc598c8.json b/change/@acedatacloud-nexior-319bfdde-acc8-4f5f-9f8b-80b27fc598c8.json
new file mode 100644
index 00000000..cd964b54
--- /dev/null
+++ b/change/@acedatacloud-nexior-319bfdde-acc8-4f5f-9f8b-80b27fc598c8.json
@@ -0,0 +1,7 @@
+{
+ "type": "patch",
+ "comment": "fix site config for support",
+ "packageName": "@acedatacloud/nexior",
+ "email": "office@acedata.cloud",
+ "dependentChangeType": "patch"
+}
diff --git a/src/components/common/Navigator.vue b/src/components/common/Navigator.vue
index 7f065c85..bc0e4f70 100644
--- a/src/components/common/Navigator.vue
+++ b/src/components/common/Navigator.vue
@@ -25,7 +25,7 @@
-
+
@@ -204,6 +204,9 @@ export default defineComponent({
showSite() {
return this.$store?.state?.site?.admins?.includes(this.$store.getters.user?.id);
},
+ showSupport() {
+ return this.$store?.state?.site?.features?.support?.enabled;
+ },
showDistribution() {
return (
// if forcedInviterId is set, only the forced inviter can see the distribution menu
diff --git a/src/pages/profile/Index.vue b/src/pages/profile/Index.vue
index 1d9cf453..ad195bcb 100644
--- a/src/pages/profile/Index.vue
+++ b/src/pages/profile/Index.vue
@@ -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'),
diff --git a/src/pages/site/Index.vue b/src/pages/site/Index.vue
index 7160511c..00df849f 100644
--- a/src/pages/site/Index.vue
+++ b/src/pages/site/Index.vue
@@ -180,12 +180,11 @@
>
{{ $t('site.message.features' + feature.charAt(0).toUpperCase() + feature.slice(1)) }}
-
+
-
+
-
+
-
+
- {{ site.features[feature].discord?.url }}
+ {{ site.features[feature]?.discord?.url }}