diff --git a/apps/console/src/pages/iam/organizations/settings/_components/OrganizationForm.tsx b/apps/console/src/pages/iam/organizations/settings/_components/OrganizationForm.tsx index a09b0ab68..51376a2b8 100644 --- a/apps/console/src/pages/iam/organizations/settings/_components/OrganizationForm.tsx +++ b/apps/console/src/pages/iam/organizations/settings/_components/OrganizationForm.tsx @@ -211,7 +211,7 @@ export function OrganizationForm(props: {
}) { const { queryRef } = props; + const { __ } = useTranslate(); + const { toast } = useToast(); const { organization } = usePreloadedQuery(compliancePageBrandPageQuery, queryRef); if (organization.__typename !== "Organization") { @@ -81,6 +84,15 @@ export function CompliancePageBrandPage(props: { queryRef: PreloadedQuery 5 * 1024 * 1024) { + toast({ + title: __("File size too large"), + description: __("The file size is too large. Please upload a file smaller than 5MB."), + variant: "error", + }); + return; + } + processLogoFile(file, setLogoPreview); void updateBrand({ @@ -103,6 +115,15 @@ export function CompliancePageBrandPage(props: { queryRef: PreloadedQuery 5 * 1024 * 1024) { + toast({ + title: __("File size too large"), + description: __("The file size is too large. Please upload a file smaller than 5MB."), + variant: "error", + }); + return; + } + processLogoFile(file, setDarkLogoPreview); void updateBrand({ diff --git a/apps/console/src/pages/organizations/compliance-page/domain/_components/DeleteCompliancePageDomainDialog.tsx b/apps/console/src/pages/organizations/compliance-page/domain/_components/DeleteCompliancePageDomainDialog.tsx index 972da7712..b9aea101d 100644 --- a/apps/console/src/pages/organizations/compliance-page/domain/_components/DeleteCompliancePageDomainDialog.tsx +++ b/apps/console/src/pages/organizations/compliance-page/domain/_components/DeleteCompliancePageDomainDialog.tsx @@ -100,7 +100,7 @@ export function DeleteCompliancePageDomainDialog(props: DeleteCompliancePageDoma variant="danger" icon={IconTrashCan} onClick={() => void handleDeleteDomain()} - disabled={isDeleting} + disabled={isDeleting || inputValue !== domain} > {isDeleting ? __("Deleting...") : __("Delete Domain")} diff --git a/apps/trust/src/pages/auth/AuthLayout.tsx b/apps/trust/src/pages/auth/AuthLayout.tsx index 67debdf0e..d49c0e7b5 100644 --- a/apps/trust/src/pages/auth/AuthLayout.tsx +++ b/apps/trust/src/pages/auth/AuthLayout.tsx @@ -39,10 +39,10 @@ export function AuthLayout(props: { queryRef: PreloadedQuery }) ) - : } + : }
diff --git a/packages/emails/emails.go b/packages/emails/emails.go index 688dabd3c..cbc3110e2 100644 --- a/packages/emails/emails.go +++ b/packages/emails/emails.go @@ -257,7 +257,7 @@ func (p *Presenter) RenderTrustCenterDocumentAccessRejected( return fmt.Sprintf(subjectTrustCenterDocumentAccessRejected, organizationName), textBody, htmlBody, err } -func (p *Presenter) RenderMagicLink(magicLinkUrlPath string, tokenDuration time.Duration, organizationName string) (subject string, textBody string, htmlBody *string, err error) { +func (p *Presenter) RenderMagicLink(magicLinkUrlPath string, tokenString string, tokenDuration time.Duration, organizationName string) (subject string, textBody string, htmlBody *string, err error) { data := struct { PresenterVariables MagicLinkURL string @@ -265,7 +265,7 @@ func (p *Presenter) RenderMagicLink(magicLinkUrlPath string, tokenDuration time. OrganizationName string }{ PresenterVariables: p.variables, - MagicLinkURL: baseurl.MustParse(p.variables.BaseURL).WithPath(magicLinkUrlPath).MustString(), + MagicLinkURL: baseurl.MustParse(p.variables.BaseURL).WithPath(magicLinkUrlPath).WithQuery("token", tokenString).MustString(), DurationInMinutes: int(tokenDuration.Minutes()), OrganizationName: organizationName, } diff --git a/packages/emails/src/components/Logo.tsx b/packages/emails/src/components/Logo.tsx index 23d646f4b..767f06590 100644 --- a/packages/emails/src/components/Logo.tsx +++ b/packages/emails/src/components/Logo.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; export function Logo() { return (