diff --git a/src/core/course/providers/course.ts b/src/core/course/providers/course.ts index f812ef2b6..d15793574 100644 --- a/src/core/course/providers/course.ts +++ b/src/core/course/providers/course.ts @@ -981,7 +981,12 @@ export class CoreCourseProvider { } }).catch(() => { // The site plugin failed to load. The user needs to restart the app to try loading it again. - this.domUtils.showErrorModal('core.courses.errorloadplugins', true); + const message = this.translate.instant('core.courses.errorloadplugins'); + const reload = this.translate.instant('core.courses.reload'); + const ignore = this.translate.instant('core.courses.ignore'); + this.domUtils.showConfirm(message, '', reload, ignore).then(() => { + window.location.reload(); + }); }); } else { // No custom format plugin. We don't need to wait for anything. diff --git a/src/core/courses/lang/en.json b/src/core/courses/lang/en.json index 9409f2ee0..ef69785f5 100644 --- a/src/core/courses/lang/en.json +++ b/src/core/courses/lang/en.json @@ -11,11 +11,12 @@ "enrolme": "Enrol me", "errorloadcategories": "An error occurred while loading categories.", "errorloadcourses": "An error occurred while loading courses.", - "errorloadplugins": "The plugins required by this course could not be loaded correctly. Please restart the app to try again.", + "errorloadplugins": "The plugins required by this course could not be loaded correctly. Please reload the app to try again.", "errorsearching": "An error occurred while searching.", "errorselfenrol": "An error occurred while self enrolling.", "filtermycourses": "Filter my courses", "frontpage": "Front page", + "ignore": "Ignore", "hidecourse": "Hide from view", "mycourses": "My courses", "nocourses": "No course information to show.", @@ -26,6 +27,7 @@ "password": "Enrolment key", "paymentrequired": "This course requires a payment for entry.", "paypalaccepted": "PayPal payments accepted", + "reload": "Reload", "removefromfavourites": "Unstar this course", "search": "Search", "searchcourses": "Search courses", @@ -34,4 +36,4 @@ "sendpaymentbutton": "Send payment via PayPal", "show": "Show this course", "totalcoursesearchresults": "Total courses: {{$a}}" -} \ No newline at end of file +}