From f332b65100e04e2e71a357630877683a3d67f9aa Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 14 Apr 2022 11:15:17 +0200 Subject: [PATCH] MOBILE-3833 resource: Don't show outdated warning for external files --- src/addons/mod/resource/components/index/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/mod/resource/components/index/index.ts b/src/addons/mod/resource/components/index/index.ts index 6d6942ca2..a582ed675 100644 --- a/src/addons/mod/resource/components/index/index.ts +++ b/src/addons/mod/resource/components/index/index.ts @@ -205,7 +205,7 @@ export class AddonModResourceIndexComponent extends CoreCourseModuleMainResource downloadable = await AddonModResourceHelper.isMainFileDownloadable(this.module); if (downloadable) { - if (this.currentStatus === CoreConstants.OUTDATED && !this.isOnline) { + if (this.currentStatus === CoreConstants.OUTDATED && !this.isOnline && !this.isExternalFile) { // Warn the user that the file isn't updated. const alert = await CoreDomUtils.showAlert( undefined,