Skip to content

Commit

Permalink
MOBILE-4712 enrol: Remove "No enrolment key required" string
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyserver committed Dec 2, 2024
1 parent a5cec58 commit 6e7722f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion scripts/langindex.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/addons/enrol/self/lang.json
Original file line number Diff line number Diff line change
@@ -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"
}
4 changes: 2 additions & 2 deletions src/addons/enrol/self/services/enrol-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ export class AddonEnrolSelfHandlerService implements CoreEnrolSelfHandler {
if (!info.enrolpassword) {
try {
await CoreDomUtils.showConfirm(
Translate.instant('addon.enrol_self.confirmselfenrol') + '<br>' +
Translate.instant('addon.enrol_self.nopassword'),
Translate.instant('addon.enrol_self.confirmselfenrol'),
method.name,
Translate.instant('core.courses.enrolme'),
);
} catch {
// User cancelled.
Expand Down

0 comments on commit 6e7722f

Please sign in to comment.