Skip to content

Commit

Permalink
Merge pull request #1146 from openedx/inf-1620-rebase
Browse files Browse the repository at this point in the history
Rebase 2u-main with master
  • Loading branch information
muhammadadeeltajamul authored Oct 25, 2024
2 parents 7618004 + 84de80e commit f04fddd
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -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:[email protected]'
Expand Down
9 changes: 4 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 8 additions & 3 deletions src/account-settings/site-language/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
3 changes: 2 additions & 1 deletion src/account-settings/third-party-auth/data/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
1 change: 0 additions & 1 deletion src/notification-preferences/data/constants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const EMAIL_CADENCE = {
DAILY: 'Daily',
WEEKLY: 'Weekly',
NEVER: 'Never',
};

export default EMAIL_CADENCE;

0 comments on commit f04fddd

Please sign in to comment.