mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: correct sub-org invite url query param and add hypen to sub org email template
This commit is contained in:
@@ -129,7 +129,7 @@ export const newOrgMembershipUserFactory = ({
|
|||||||
recipients: emails as string[],
|
recipients: emails as string[],
|
||||||
substitutions: {
|
substitutions: {
|
||||||
subOrganizationName: orgDetails.slug,
|
subOrganizationName: orgDetails.slug,
|
||||||
callback_url: `${appCfg.SITE_URL}/organization/projects?${orgDetails.slug}`
|
callback_url: `${appCfg.SITE_URL}/organization/projects?subOrganization=${orgDetails.slug}`
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -17,19 +17,19 @@ export const SubOrganizationInvitationTemplate = ({
|
|||||||
return (
|
return (
|
||||||
<BaseEmailWrapper
|
<BaseEmailWrapper
|
||||||
title="Sub-Organization Invitation"
|
title="Sub-Organization Invitation"
|
||||||
preview="You've been invited to join a suborganization on Infisical."
|
preview="You've been invited to join a sub-organization on Infisical."
|
||||||
siteUrl={siteUrl}
|
siteUrl={siteUrl}
|
||||||
>
|
>
|
||||||
<Heading className="text-black text-[18px] leading-[28px] text-center font-normal p-0 mx-0">
|
<Heading className="text-black text-[18px] leading-[28px] text-center font-normal p-0 mx-0">
|
||||||
You've been invited to join a suborganization on Infisical
|
You've been invited to join a sub-organization on Infisical
|
||||||
</Heading>
|
</Heading>
|
||||||
<Section className="px-[24px] mb-[28px] mt-[36px] pt-[12px] pb-[8px] border text-center border-solid border-gray-200 rounded-md bg-gray-50">
|
<Section className="px-[24px] mb-[28px] mt-[36px] pt-[12px] pb-[8px] border text-center border-solid border-gray-200 rounded-md bg-gray-50">
|
||||||
<Text className="text-black text-[14px] leading-[24px]">
|
<Text className="text-black text-[14px] leading-[24px]">
|
||||||
You've been invited to join the suborganization <strong>{subOrganizationName}</strong>.
|
You've been invited to join the sub-organization <strong>{subOrganizationName}</strong>.
|
||||||
</Text>
|
</Text>
|
||||||
</Section>
|
</Section>
|
||||||
<Section className="text-center">
|
<Section className="text-center">
|
||||||
<BaseButton href={callback_url}>Join Suborganization</BaseButton>
|
<BaseButton href={callback_url}>Join Sub-Organization</BaseButton>
|
||||||
</Section>
|
</Section>
|
||||||
<Section className="mt-[24px] bg-gray-50 pt-[2px] pb-[16px] border border-solid border-gray-200 px-[24px] rounded-md text-gray-800">
|
<Section className="mt-[24px] bg-gray-50 pt-[2px] pb-[16px] border border-solid border-gray-200 px-[24px] rounded-md text-gray-800">
|
||||||
<Text className="mb-[0px]">
|
<Text className="mb-[0px]">
|
||||||
|
|||||||
Reference in New Issue
Block a user