diff --git a/scripts/langindex.json b/scripts/langindex.json index 388c7dd0656..d71db92121e 100644 --- a/scripts/langindex.json +++ b/scripts/langindex.json @@ -256,7 +256,6 @@ "addon.enrol_guest.passwordinvalid": "enrol_guest", "addon.enrol_self.confirmselfenrol": "local_moodlemobileapp", "addon.enrol_self.errorselfenrol": "local_moodlemobileapp", - "addon.enrol_self.nopassword": "enrol_self", "addon.enrol_self.password": "enrol_self", "addon.enrol_self.pluginname": "enrol_self", "addon.messageoutput_airnotifier.processorsettingsdesc": "local_moodlemobileapp", diff --git a/src/addons/enrol/self/lang.json b/src/addons/enrol/self/lang.json index 1fceb0abb68..cd87eba3b23 100644 --- a/src/addons/enrol/self/lang.json +++ b/src/addons/enrol/self/lang.json @@ -1,7 +1,6 @@ { "confirmselfenrol": "Are you sure you want to enrol yourself in this course?", "errorselfenrol": "An error occurred while self enrolling.", - "nopassword": "No enrolment key required.", "password": "Enrolment key", "pluginname": "Self enrolment" } diff --git a/src/addons/enrol/self/services/enrol-handler.ts b/src/addons/enrol/self/services/enrol-handler.ts index 6e74137c9d1..cca13366243 100644 --- a/src/addons/enrol/self/services/enrol-handler.ts +++ b/src/addons/enrol/self/services/enrol-handler.ts @@ -88,9 +88,9 @@ export class AddonEnrolSelfHandlerService implements CoreEnrolSelfHandler { if (!info.enrolpassword) { try { await CoreDomUtils.showConfirm( - Translate.instant('addon.enrol_self.confirmselfenrol') + '
' + - Translate.instant('addon.enrol_self.nopassword'), + Translate.instant('addon.enrol_self.confirmselfenrol'), method.name, + Translate.instant('core.courses.enrolme'), ); } catch { // User cancelled.