diff --git a/.env.development b/.env.development index ee578f76e..c3c003740 100644 --- a/.env.development +++ b/.env.development @@ -28,7 +28,7 @@ ENABLE_COPPA_COMPLIANCE='' ENABLE_ACCOUNT_DELETION='' ENABLE_DOB_UPDATE='' MARKETING_EMAILS_OPT_IN='' -SHOW_EMAIL_CHANNEL='' +SHOW_EMAIL_CHANNEL='true' APP_ID= MFE_CONFIG_API_URL= PASSWORD_RESET_SUPPORT_LINK='mailto:support@example.com' diff --git a/package-lock.json b/package-lock.json index b3572f4a7..453ae34a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "AGPL-3.0", "dependencies": { "@edx/brand": "npm:@openedx/brand-openedx@^1.2.2", - "@edx/frontend-component-header": "5.5.0", + "@edx/frontend-component-header": "^5.6.0", "@edx/frontend-platform": "8.1.2", "@edx/openedx-atlas": "^0.6.0", "@fortawesome/fontawesome-svg-core": "^6.6.0", @@ -2010,10 +2010,9 @@ } }, "node_modules/@edx/frontend-component-header": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@edx/frontend-component-header/-/frontend-component-header-5.5.0.tgz", - "integrity": "sha512-nvpuTIx1o27LUGJ17HpOOm+PX0gg/YumWUMsrl1gSjbrTksyDLOxS1Y4thqlrWzD+dAgk5YKMowZM2BLiRDguQ==", - "license": "AGPL-3.0", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@edx/frontend-component-header/-/frontend-component-header-5.6.0.tgz", + "integrity": "sha512-ITLLrej6BbWVc/0baMkKg/ACTvUGSR188Rn/BC2Y82Tdu8gRsZB6+0GUsDX/6FJjeIazLXdUusKlfwVU90sXLA==", "dependencies": { "@fortawesome/fontawesome-svg-core": "6.6.0", "@fortawesome/free-brands-svg-icons": "6.6.0", diff --git a/package.json b/package.json index d7df66233..3cca35c71 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ ], "dependencies": { "@edx/brand": "npm:@openedx/brand-openedx@^1.2.2", - "@edx/frontend-component-header": "5.5.0", + "@edx/frontend-component-header": "^5.6.0", "@edx/frontend-platform": "8.1.2", "@edx/openedx-atlas": "^0.6.0", "@fortawesome/fontawesome-svg-core": "^6.6.0", diff --git a/src/account-settings/site-language/service.js b/src/account-settings/site-language/service.js index 66466949b..5b8c9f2ef 100644 --- a/src/account-settings/site-language/service.js +++ b/src/account-settings/site-language/service.js @@ -23,10 +23,15 @@ export async function patchPreferences(username, params) { export async function postSetLang(code) { const formData = new FormData(); + const requestConfig = { + headers: { + Accept: 'application/json', + 'X-Requested-With': 'XMLHttpRequest', + }, + }; + const url = `${getConfig().LMS_BASE_URL}/i18n/setlang/`; formData.append('language', code); await getAuthenticatedHttpClient() - .post(`${getConfig().LMS_BASE_URL}/i18n/setlang/`, formData, { - headers: { 'X-Requested-With': 'XMLHttpRequest' }, - }); + .post(url, formData, requestConfig); } diff --git a/src/account-settings/third-party-auth/data/service.js b/src/account-settings/third-party-auth/data/service.js index 344913ee7..f3d07e53c 100644 --- a/src/account-settings/third-party-auth/data/service.js +++ b/src/account-settings/third-party-auth/data/service.js @@ -16,8 +16,9 @@ export async function getThirdPartyAuthProviders() { } export async function postDisconnectAuth(url) { + const requestConfig = { headers: { Accept: 'application/json' } }; const { data } = await getAuthenticatedHttpClient() - .post(url) + .post(url, {}, requestConfig) .catch(handleRequestError); return data; } diff --git a/src/notification-preferences/data/constants.js b/src/notification-preferences/data/constants.js index a3a3a9e5b..29091ce52 100644 --- a/src/notification-preferences/data/constants.js +++ b/src/notification-preferences/data/constants.js @@ -1,7 +1,6 @@ const EMAIL_CADENCE = { DAILY: 'Daily', WEEKLY: 'Weekly', - NEVER: 'Never', }; export default EMAIL_CADENCE;