Merge pull request #35499 from openedx/rijuma/removing-old-special-exams-views
Added a check to initialize legacy proctoring dashboard only if it's being used
This commit is contained in:
@@ -50,6 +50,12 @@ such that the value can be defined later than this assignment (file load order).
|
||||
|
||||
$activeSection = null;
|
||||
|
||||
var usesProctoringLegacyView = function () {
|
||||
// If the element #proctoring-mfe-view is present, then uses the new MFE
|
||||
// and the legacy views should not be initialized.
|
||||
return !document.getElementById('proctoring-mfe-view');
|
||||
}
|
||||
|
||||
SafeWaiter = (function() {
|
||||
function safeWaiter() {
|
||||
this.after_handlers = [];
|
||||
@@ -200,7 +206,7 @@ such that the value can be defined later than this assignment (file load order).
|
||||
}
|
||||
];
|
||||
// eslint-disable-next-line no-void
|
||||
if (edx.instructor_dashboard.proctoring !== void 0) {
|
||||
if (usesProctoringLegacyView() && edx.instructor_dashboard.proctoring !== void 0) {
|
||||
sectionsToInitialize = sectionsToInitialize.concat([
|
||||
{
|
||||
constructor: edx.instructor_dashboard.proctoring.ProctoredExamAllowanceView,
|
||||
|
||||
Reference in New Issue
Block a user