gettext("This course uses automatic cohorting for verified track learners. You cannot disable cohorts, and you cannot rename the manual cohort named '{verifiedCohortName}'. To change the configuration for verified track cohorts, contact your edX partner manager."),// jshint ignore:line
{verifiedCohortName:verifiedCohortName}
)
});
}
else{
this.showNotification({
type:'error',
title:StringUtils.interpolate(
gettext("This course has automatic cohorting enabled for verified track learners, but the required cohort does not exist. You must create a manually-assigned cohort named '{verifiedCohortName}' for the feature to work."),// jshint ignore:line
{verifiedCohortName:verifiedCohortName}
)
});
}
enableCohortsCheckbox.prop('disabled',true);
}
else{
this.showNotification({
type:'error',
title:gettext('This course has automatic cohorting enabled for verified track learners, but cohorts are disabled. You must enable cohorts for the feature to work.')// jshint ignore:line
});
enableCohortsCheckbox.prop('disabled',false);
}
}
},
showNotification:function(options){
if(this.notification){
this.notification.remove();
}
this.notification=newNotificationView({
model:newNotificationModel(options)
});
// It's ugly to reach outside to the cohort-management div, but we want this notification
// message to always be visible (as opposed to using the transient notification area defined