@edx/edx-proctoring
Advanced tools
Comparing version 3.21.0 to 3.22.0
@@ -86,3 +86,3 @@ /* globals accessible_modal:false */ | ||
// Update the state of the attempt | ||
function updateExamAttemptStatusPromise(actionUrl, action) { | ||
function updateExamAttemptStatusPromise(actionUrl, action, isVerifiedNameEnabled) { | ||
return function() { | ||
@@ -93,3 +93,4 @@ return Promise.resolve($.ajax({ | ||
data: { | ||
action: action | ||
action: action, | ||
is_verified_name_enabled: isVerifiedNameEnabled | ||
} | ||
@@ -128,3 +129,8 @@ })); | ||
var action = $this.data('action'); | ||
updateExamAttemptStatusPromise(actionUrl, action)() | ||
// Course waffle flag for verified name | ||
var main = document.getElementById('main'); | ||
var isVerifiedNameEnabled = main.dataset.isVerifiedNameEnabled.toLowerCase() === 'true'; | ||
updateExamAttemptStatusPromise(actionUrl, action, isVerifiedNameEnabled)() | ||
.then(reloadPage) | ||
@@ -131,0 +137,0 @@ .catch(errorHandlerGivenMessage( |
{ | ||
"name": "@edx/edx-proctoring", | ||
"//": "Note that the version format is slightly different than that of the Python version when using prereleases.", | ||
"version": "3.21.0", | ||
"version": "3.22.0", | ||
"main": "edx_proctoring/static/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
1044281
19049