- + {{ badge.endorsement.issueremail }}
diff --git a/src/addons/mod/assign/components/index/addon-mod-assign-index.html b/src/addons/mod/assign/components/index/addon-mod-assign-index.html index 304f53c41..ef0cd7d5d 100644 --- a/src/addons/mod/assign/components/index/addon-mod-assign-index.html +++ b/src/addons/mod/assign/components/index/addon-mod-assign-index.html @@ -2,7 +2,7 @@{{ 'core.numwords' | translate: {'$a': wordCount} }}
{{ 'core.openinbrowser' | translate }}
diff --git a/src/addons/mod/glossary/components/index/addon-mod-glossary-index.html b/src/addons/mod/glossary/components/index/addon-mod-glossary-index.html index 8b19195d1..02b9e0405 100644 --- a/src/addons/mod/glossary/components/index/addon-mod-glossary-index.html +++ b/src/addons/mod/glossary/components/index/addon-mod-glossary-index.html @@ -11,7 +11,7 @@{{ errorMessage | translate }}
{{ 'core.course.useactivityonbrowser' | translate }}
-{{ 'core.settings.license' | translate }}{{ 'core.labelsep' | translate }} {{ license.licenses }}
- +You are about to leave the app to open the following URL in your device's browser. Do you want to continue?
\n{{url}}
", "whatisyourage": "What is your age?", "wheredoyoulive": "In which country do you live?", "whoissiteadmin": "\"Site Administrators\" are the people who manage the Moodle at your school/university/company or learning organisation. If you don't know how to contact them, please contact your teachers/trainers.", diff --git a/src/core/services/sites.ts b/src/core/services/sites.ts index 291d3ca5e..fd3d4c85b 100644 --- a/src/core/services/sites.ts +++ b/src/core/services/sites.ts @@ -731,7 +731,7 @@ export class CoreSitesProvider { Translate.instant('core.updaterequired'), Translate.instant('core.download'), Translate.instant(siteId ? 'core.mainmenu.logout' : 'core.cancel'), - ).then(() => CoreUtils.openInBrowser(downloadUrl)).catch(() => { + ).then(() => CoreUtils.openInBrowser(downloadUrl, { showBrowserWarning: false })).catch(() => { // Do nothing. }); } else { diff --git a/src/core/services/utils/dom.ts b/src/core/services/utils/dom.ts index 17048560b..093e072a9 100644 --- a/src/core/services/utils/dom.ts +++ b/src/core/services/utils/dom.ts @@ -1440,7 +1440,7 @@ export class CoreDomUtilsProvider { buttons.push({ text: Translate.instant('core.download'), handler: (): void => { - CoreUtils.openInBrowser(link); + CoreUtils.openInBrowser(link, { showBrowserWarning: false }); }, }); } @@ -1465,28 +1465,32 @@ export class CoreDomUtilsProvider { * * @param message Modal message. * @param header Modal header. - * @param placeholder Placeholder of the input element. By default, "Password". + * @param placeholderOrLabel Placeholder (for textual/numeric inputs) or label (for radio/checkbox). By default, "Password". * @param type Type of the input element. By default, password. * @param options More options to pass to the alert. - * @return Promise resolved with the input data if the user clicks OK, rejected if cancels. + * @return Promise resolved with the input data (true for checkbox/radio) if the user clicks OK, rejected if cancels. */ showPrompt( message: string, header?: string, - placeholder?: string, + placeholderOrLabel?: string, type: TextFieldTypes | 'checkbox' | 'radio' | 'textarea' = 'password', ): Promise