diff --git a/lms/static/js/student_account/StudentAccountDeletionInitializer.js b/lms/static/js/student_account/StudentAccountDeletionInitializer.js index 5637e9e2d5..f062264d16 100644 --- a/lms/static/js/student_account/StudentAccountDeletionInitializer.js +++ b/lms/static/js/student_account/StudentAccountDeletionInitializer.js @@ -16,7 +16,14 @@ const wrapperRendered = setInterval(() => { component: StudentAccountDeletion, selector: `#${accountDeletionWrapperId}`, componentName: 'StudentAccountDeletion', - props: { socialAccountLinks: window.auth, isActive: window.isActive }, + props: { + socialAccountLinks: window.auth, + isActive: window.isActive, + additionalSiteSpecificDeletionText: window.additionalSiteSpecificDeletionText, + mktgRootLink: window.mktgRootLink, + platformName: window.platformName, + siteName: window.siteName + }, }); } diff --git a/lms/static/js/student_account/components/StudentAccountDeletion.jsx b/lms/static/js/student_account/components/StudentAccountDeletion.jsx index e925d5455f..30713689bb 100644 --- a/lms/static/js/student_account/components/StudentAccountDeletion.jsx +++ b/lms/static/js/student_account/components/StudentAccountDeletion.jsx @@ -73,18 +73,45 @@ export class StudentAccountDeletion extends React.Component { ); const acctDeletionWarningText = StringUtils.interpolate( - gettext('{strongStart}Warning: Account deletion is permanent.{strongEnd} Please read the above carefully before proceeding. This is an irreversible action, and {strongStart}you will no longer be able to use the same email on edX.{strongEnd}'), + gettext('{strongStart}Warning: Account deletion is permanent.{strongEnd} Please read the above carefully before proceeding. This is an irreversible action, and {strongStart}you will no longer be able to use the same email on {platformName}.{strongEnd}'), { strongStart: '', strongEnd: '', + platformName: this.props.platformName, + }, + ); + + const noteDeletion = StringUtils.interpolate( + gettext('Please note: Deletion of your account and personal data is permanent and cannot be undone. {platformName} will not be able to recover your account or the data that is deleted.'), + { + platformName: this.props.platformName, + }, + ); + + const bodyDeletion = StringUtils.interpolate( + gettext('Once your account is deleted, you cannot use it to take courses on the {platformName} app, {siteName}, or any other site hosted by {platformName}.'), + { + platformName: this.props.platformName, + siteName: this.props.siteName, + }, + ); + + const bodyDeletion2 = StringUtils.interpolate( + gettext('This includes access to {siteName} from your employer’s or university’s system{additionalSiteSpecificDeletionText}.'), + { + siteName: this.props.siteName, + additionalSiteSpecificDeletionText: this.props.additionalSiteSpecificDeletionText, }, ); return (
{ gettext('We’re sorry to see you go!') }
-{ gettext('Please note: Deletion of your account and personal data is permanent and cannot be undone. EdX will not be able to recover your account or the data that is deleted.') }
-{ gettext('Once your account is deleted, you cannot use it to take courses on the edX app, edx.org, or any other site hosted by edX. This includes access to edx.org from your employer’s or university’s system and access to private sites offered by MIT Open Learning, Wharton Executive Education, and Harvard Medical School.') }
+{noteDeletion}
++ {bodyDeletion} + {bodyDeletion2} +
} - {deletionModalOpen &&{ gettext('If you proceed, you will be unable to use this account to take courses on the edX app, edx.org, or any other site hosted by edX. This includes access to edx.org from your employer’s or university’s system and access to private sites offered by MIT Open Learning, Wharton Executive Education, and Harvard Medical School.') }
++ {bodyDeletion} + {bodyDeletion2} +