mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 18:17:35 +00:00
feat: add Help/Support e-mail for instance/org (#5445)
feat: help and support email in privacy policy
This commit is contained in:
@@ -73,6 +73,7 @@ export function mapRequestValues(map: Partial<Map>, req: Req): Req {
|
||||
r3.setHelp(map.footerText?.help ?? '');
|
||||
r3.setPrivacyPolicy(map.footerText?.privacyPolicy ?? '');
|
||||
r3.setTos(map.footerText?.tos ?? '');
|
||||
r3.setSupportEmail(map.footerText?.supportEmail ?? '');
|
||||
req.setFooterText(r3);
|
||||
|
||||
const r4 = new InitMFADoneScreenText();
|
||||
|
@@ -36,6 +36,12 @@
|
||||
<input cnslInput name="helpLink" formControlName="helpLink" />
|
||||
<template [ngTemplateOutlet]="templateRef" [ngTemplateOutletContext]="{ key: 'helpLink' }"></template>
|
||||
</cnsl-form-field>
|
||||
|
||||
<cnsl-form-field class="privacy-policy-formfield">
|
||||
<cnsl-label>{{ 'POLICY.PRIVACY_POLICY.SUPPORTEMAIL' | translate }}</cnsl-label>
|
||||
<input cnslInput name="supportEmail" formControlName="supportEmail" />
|
||||
<template [ngTemplateOutlet]="templateRef" [ngTemplateOutletContext]="{ key: 'supportEmail' }"></template>
|
||||
</cnsl-form-field>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
@@ -7,9 +7,10 @@
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
column-gap: 1rem;
|
||||
width: 75%;
|
||||
|
||||
@media only screen and (min-width: 800px) {
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -60,6 +60,7 @@ export class PrivacyPolicyComponent implements OnInit, OnDestroy {
|
||||
tosLink: ['', []],
|
||||
privacyLink: ['', []],
|
||||
helpLink: ['', []],
|
||||
supportEmail: ['', []],
|
||||
});
|
||||
|
||||
this.canWrite$.pipe(take(1)).subscribe((canWrite) => {
|
||||
@@ -105,6 +106,7 @@ export class PrivacyPolicyComponent implements OnInit, OnDestroy {
|
||||
tosLink: '',
|
||||
privacyLink: '',
|
||||
helpLink: '',
|
||||
supportEmail: '',
|
||||
});
|
||||
}
|
||||
})
|
||||
@@ -114,6 +116,7 @@ export class PrivacyPolicyComponent implements OnInit, OnDestroy {
|
||||
tosLink: '',
|
||||
privacyLink: '',
|
||||
helpLink: '',
|
||||
supportEmail: '',
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -125,6 +128,7 @@ export class PrivacyPolicyComponent implements OnInit, OnDestroy {
|
||||
req.setPrivacyLink(this.form.get('privacyLink')?.value);
|
||||
req.setTosLink(this.form.get('tosLink')?.value);
|
||||
req.setHelpLink(this.form.get('helpLink')?.value);
|
||||
req.setSupportEmail(this.form.get('supportEmail')?.value);
|
||||
(this.service as ManagementService)
|
||||
.addCustomPrivacyPolicy(req)
|
||||
.then(() => {
|
||||
@@ -137,6 +141,7 @@ export class PrivacyPolicyComponent implements OnInit, OnDestroy {
|
||||
req.setPrivacyLink(this.form.get('privacyLink')?.value);
|
||||
req.setTosLink(this.form.get('tosLink')?.value);
|
||||
req.setHelpLink(this.form.get('helpLink')?.value);
|
||||
req.setSupportEmail(this.form.get('supportEmail')?.value);
|
||||
|
||||
(this.service as ManagementService)
|
||||
.updateCustomPrivacyPolicy(req)
|
||||
@@ -151,6 +156,7 @@ export class PrivacyPolicyComponent implements OnInit, OnDestroy {
|
||||
req.setPrivacyLink(this.form.get('privacyLink')?.value);
|
||||
req.setTosLink(this.form.get('tosLink')?.value);
|
||||
req.setHelpLink(this.form.get('helpLink')?.value);
|
||||
req.setSupportEmail(this.form.get('supportEmail')?.value);
|
||||
|
||||
(this.service as AdminService)
|
||||
.updatePrivacyPolicy(req)
|
||||
|
@@ -53,6 +53,6 @@
|
||||
<cnsl-login-texts [serviceType]="serviceType"></cnsl-login-texts>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="currentSetting === 'privacypolicy'">
|
||||
<cnsl-privacy-policy [serviceType]="PolicyComponentServiceType.ADMIN"></cnsl-privacy-policy>
|
||||
<cnsl-privacy-policy [serviceType]="serviceType"></cnsl-privacy-policy>
|
||||
</ng-container>
|
||||
</cnsl-sidenav>
|
||||
|
@@ -1185,6 +1185,7 @@
|
||||
"TOSLINK": "Link zu den Allgemeinen Geschäftsbedingungen",
|
||||
"POLICYLINK": "Link zur den Datenschutzrichtlinien",
|
||||
"HELPLINK": "Link zur Hilfestellung",
|
||||
"SUPPORTEMAIL": "Support E-Mail",
|
||||
"SAVED": "Saved successfully!",
|
||||
"RESET_TITLE": "Standardwerte wiederherstellen",
|
||||
"RESET_DESCRIPTION": "Sie sind im Begriff die Standardlinks für die AGBs und Datenschutzrichtlinie wiederherzustellen. Wollen Sie fortfahren?"
|
||||
|
@@ -1186,6 +1186,7 @@
|
||||
"TOSLINK": "Link to Terms of Service",
|
||||
"POLICYLINK": "Link to Privacy Policy",
|
||||
"HELPLINK": "Link to Help",
|
||||
"SUPPORTEMAIL": "Support Email",
|
||||
"SAVED": "Saved successfully!",
|
||||
"RESET_TITLE": "Restore Default Values",
|
||||
"RESET_DESCRIPTION": "You are about to restore the default Links for TOS and Privacy Policy. Do you really want to continue?"
|
||||
|
@@ -1185,6 +1185,7 @@
|
||||
"TOSLINK": "Lien vers les conditions d'utilisation",
|
||||
"POLICYLINK": "Lien vers la politique de confidentialité",
|
||||
"HELPLINK": "Lien vers l'aide",
|
||||
"SUPPORTEMAIL": "E-mail d'assistance",
|
||||
"SAVED": "Enregistré avec succès !",
|
||||
"RESET_TITLE": "Restaurer les valeurs par défaut",
|
||||
"RESET_DESCRIPTION": "Vous êtes sur le point de restaurer les liens par défaut pour les CGS et la politique de confidentialité. Voulez-vous vraiment continuer ?"
|
||||
|
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"FOOTER": {
|
||||
"LINKS": {
|
||||
"CONTACT": "Kontakt",
|
||||
"CONTACT": "Contatto",
|
||||
"TOS": "Terms of Service",
|
||||
"PP": "Privacy Policy"
|
||||
},
|
||||
@@ -1186,6 +1186,7 @@
|
||||
"TOSLINK": "Link ai termini di servizio",
|
||||
"POLICYLINK": "Link all'informativa sulla privacy",
|
||||
"HELPLINK": "link per l'aiuto",
|
||||
"SUPPORTEMAIL": "e-mail di supporto",
|
||||
"SAVED": "Salvato con successo!",
|
||||
"RESET_TITLE": "Ripristina i valori predefiniti",
|
||||
"RESET_DESCRIPTION": "Stai per ripristinare i link predefiniti per i TOS e l'informativa sulla privacy. Vuoi davvero continuare?"
|
||||
|
@@ -1185,6 +1185,7 @@
|
||||
"TOSLINK": "Link do warunków korzystania",
|
||||
"POLICYLINK": "Link do polityki prywatności",
|
||||
"HELPLINK": "Link do pomocy",
|
||||
"SUPPORTEMAIL": "E-mail wsparcia",
|
||||
"SAVED": "Pomyślnie zapisano!",
|
||||
"RESET_TITLE": "Przywróć wartości domyślne",
|
||||
"RESET_DESCRIPTION": "Masz zamiar przywrócić domyślne linki dla TOS i polityki prywatności. Czy na pewno chcesz kontynuować?"
|
||||
|
@@ -1184,6 +1184,7 @@
|
||||
"TOSLINK": "链接到服务条款",
|
||||
"POLICYLINK": "链接到隐私政策",
|
||||
"HELPLINK": "链接到帮助",
|
||||
"SUPPORTEMAIL": "支持邮箱",
|
||||
"SAVED": "保存成功!",
|
||||
"RESET_TITLE": "恢复默认值",
|
||||
"RESET_DESCRIPTION": "您即将恢复 TOS 和隐私政策的默认链接。你真的要继续吗?"
|
||||
|
Reference in New Issue
Block a user