(status, date)
| 1236 | const isValidEmail = email => emailRegex.test(email != null ? email.trim().toLowerCase() : undefined) |
| 1237 | |
| 1238 | const formatStudentLicenseStatusDate = function (status, date) { |
| 1239 | const string = (() => { |
| 1240 | switch (status) { |
| 1241 | case 'not-enrolled': return $.i18n.t('teacher.status_not_enrolled') |
| 1242 | case 'enrolled': if (date) { return $.i18n.t('teacher.status_enrolled') } else { return '-' } |
| 1243 | case 'expired': return $.i18n.t('teacher.status_expired') |
| 1244 | } |
| 1245 | })() |
| 1246 | return string.replace('{{date}}', date || 'Never') |
| 1247 | } |
| 1248 | |
| 1249 | const formatStudentSingleLicenseStatusDate = function (product) { |
| 1250 | let string = $.i18n.t('teacher.full_license') |
nothing calls this directly
no outgoing calls
no test coverage detected