diff --git a/src/components/Tenants/AppSettings/OtherFunctionsSettings/index.tsx b/src/components/Tenants/AppSettings/OtherFunctionsSettings/index.tsx
index 485dba25..f93b7538 100644
--- a/src/components/Tenants/AppSettings/OtherFunctionsSettings/index.tsx
+++ b/src/components/Tenants/AppSettings/OtherFunctionsSettings/index.tsx
@@ -11,6 +11,7 @@ interface OtherFunctionsSettingsArgs {
hideTopics?: boolean;
hideStatistics?: boolean;
hideGroupChatToggle?: boolean;
+ hideCounsellingRelationToggle?: boolean;
}
export const OtherFunctionsSettings = ({
@@ -18,6 +19,7 @@ export const OtherFunctionsSettings = ({
hideTopics,
hideStatistics,
hideGroupChatToggle,
+ hideCounsellingRelationToggle,
}: OtherFunctionsSettingsArgs) => {
const { t } = useTranslation();
const { settings } = useAppConfigContext();
@@ -69,6 +71,19 @@ export const OtherFunctionsSettings = ({
{t('tenants.appSettings.otherFunctions.groupChat.description')}
)}
+ {!hideCounsellingRelationToggle && (
+
+
+
+ {t('tenants.appSettings.otherFunctions.counsellingRelations.description')}
+
+
+ )}
);
};
diff --git a/src/context/FeatureContext.tsx b/src/context/FeatureContext.tsx
index 80a5308b..7b697e03 100644
--- a/src/context/FeatureContext.tsx
+++ b/src/context/FeatureContext.tsx
@@ -42,6 +42,10 @@ const FeatureProvider = ({ children, tenantData, publicTenantData }: FeatureProv
name: FeatureFlag.GroupChatV2,
active: !!publicTenantData?.settings.featureGroupChatV2Enabled,
},
+ {
+ name: FeatureFlag.CounsellingRelations,
+ active: !!publicTenantData?.settings.featureCounsellingRelationsEnabled,
+ },
{
name: FeatureFlag.CentralDataProtectionTemplate,
active: !!publicTenantData?.settings.featureCentralDataProtectionTemplateEnabled,
diff --git a/src/enums/FeatureFlag.ts b/src/enums/FeatureFlag.ts
index 32e5b4d4..39479876 100644
--- a/src/enums/FeatureFlag.ts
+++ b/src/enums/FeatureFlag.ts
@@ -6,5 +6,6 @@ export enum FeatureFlag {
TopicsInRegistration = 'topicsInRegistration',
ConsultingTypesForAgencies = 'consultingTypesForAgencies',
GroupChatV2 = 'featureGroupChatV2Enabled',
+ CounsellingRelations = 'featureCounsellingRelationsEnabled',
CentralDataProtectionTemplate = 'featureCentralDataProtectionTemplateEnabled',
}
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index e1386dad..ab2bbfae 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -322,6 +322,8 @@
"tenants.appSettings.otherFunctions.statistics.description": "So können Administratoren und Berater die anonymisierten Registrierungsdaten aller Ratsuchenden exportieren",
"tenants.appSettings.otherFunctions.groupChat.title": "Gruppen Chat erlauben",
"tenants.appSettings.otherFunctions.groupChat.description": "Administratoren können Beratern erlauben, Gruppenchats zu erstellen.",
+ "tenants.appSettings.otherFunctions.counsellingRelations.title": "Beratungsgrund nutzen",
+ "tenants.appSettings.otherFunctions.counsellingRelations.description": "Aktivieren Sie diese Funktionalität, um den Beratungsgrund wie z.B. Beratung für eine/n Angehörige/n bei der Registrierung zur Auswahl anzubieten.",
"tenants.typeOfLanguage.title": "Ansprache",
"tenants.typeOfLanguage.radio.description": "Sollen die Nutzer eine formelle oder informelle Ansprache vom System bekommen?",
"tenants.typeOfLanguage.radio.formal": "formelle",
diff --git a/src/pages/Tenants/Edit/AppSettings/index.tsx b/src/pages/Tenants/Edit/AppSettings/index.tsx
index eb910281..9f233b75 100644
--- a/src/pages/Tenants/Edit/AppSettings/index.tsx
+++ b/src/pages/Tenants/Edit/AppSettings/index.tsx
@@ -21,7 +21,11 @@ export const TenantAppSettings = () => {
{hasRole(UserRole.TenantAdmin) && (
-
+
)}
diff --git a/src/types/tenant.d.ts b/src/types/tenant.d.ts
index e18cd202..f4d121cd 100644
--- a/src/types/tenant.d.ts
+++ b/src/types/tenant.d.ts
@@ -23,6 +23,7 @@ export interface BasicTenantData {
topicsInRegistrationEnabled?: boolean | null;
featureStatisticsEnabled?: boolean;
featureGroupChatV2Enabled?: boolean;
+ featureCounsellingRelationsEnabled?: boolean;
featureCentralDataProtectionTemplateEnabled?: boolean;
};
}