diff --git a/public/locales/en.json b/public/locales/en.json index 0cc2390..ebb9cd8 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -699,7 +699,11 @@ "delete": "Delete", "domain": "Domain", "domains": "Domains", - "domMsg": "You can make your B1 website answer for any custom domain you wish. Enter the associated domain name here and then add the following record to your DNS:" + "domMsg": "You can make your B1 website answer for any custom domain you wish. Enter the associated domain name here and then add the following record to your DNS:", + "domMsg2": "If your DNS provider will not allow you to add a CNAME record you can alternatively use an A record:", + "domMsg3": "If you receive SSL errors after adding the DNS entry. Click here to ", + "domMsgConnect": "connect", + "domMsg4": ". It can take up to 5 minutes." }, "givingSettingsEdit": { "forceMsg": "Automatically forces users to cover the transaction fees", diff --git a/src/settings/components/DomainSettingsEdit.tsx b/src/settings/components/DomainSettingsEdit.tsx index f9d19f6..7320c6c 100644 --- a/src/settings/components/DomainSettingsEdit.tsx +++ b/src/settings/components/DomainSettingsEdit.tsx @@ -70,13 +70,26 @@ export const DomainSettingsEdit: React.FC = (props) => { return result; } + const relink = (e: React.MouseEvent) => { + e.preventDefault(); + ApiHelper.get("/domains/caddy", "MembershipApi").then((data) => { + alert("Done. Please only click this link once."); + }); + } + React.useEffect(() => { if (props.churchId) loadData() }, [props.churchId]); //eslint-disable-line React.useEffect(checkSave, [props.saveTrigger]); //eslint-disable-line + return ( <>
{Locale.label("settings.domainSettingsEdit.domains")}
-

{Locale.label("settings.domainSettingsEdit.domMsg")} CNAME: proxy.b1.church

+

+ {Locale.label("settings.domainSettingsEdit.domMsg")} CNAME: proxy.b1.church + {Locale.label("settings.domainSettingsEdit.domMsg2")} A: 3.23.251.61 + {Locale.label("settings.domainSettingsEdit.domMsg3")} {Locale.label("settings.domainSettingsEdit.domMsgConnect")} + {Locale.label("settings.domainSettingsEdit.domMsg4")} +