diff --git a/scripts/langindex.json b/scripts/langindex.json index 473b3ddbd..aebe2caf0 100644 --- a/scripts/langindex.json +++ b/scripts/langindex.json @@ -1168,6 +1168,7 @@ "addon.storagemanager.deletecourses": "local_moodlemobileapp", "addon.storagemanager.deletedata": "local_moodlemobileapp", "addon.storagemanager.deletedatafrom": "local_moodlemobileapp", + "addon.storagemanager.downloaddatafrom": "local_moodlemobileapp", "addon.storagemanager.downloadedcourses": "local_moodlemobileapp", "addon.storagemanager.downloads": "local_moodlemobileapp", "addon.storagemanager.errordeletedownloadeddata": "local_moodlemobileapp", diff --git a/src/addons/storagemanager/lang.json b/src/addons/storagemanager/lang.json index 9d058c222..5c2fc0eb2 100644 --- a/src/addons/storagemanager/lang.json +++ b/src/addons/storagemanager/lang.json @@ -11,6 +11,7 @@ "deletecourses": "Delete downloaded data from all courses", "deletedata": "Delete downloaded data", "deletedatafrom": "Delete all downloaded data from '{{name}}'", + "downloaddatafrom": "Download {{name}}", "downloadedcourses": "Downloaded courses", "downloads": "Downloads", "errordeletedownloadeddata": "Error deleting downloaded data.", diff --git a/src/addons/storagemanager/pages/course-storage/course-storage.html b/src/addons/storagemanager/pages/course-storage/course-storage.html index dd39926aa..9bcdd56fe 100644 --- a/src/addons/storagemanager/pages/course-storage/course-storage.html +++ b/src/addons/storagemanager/pages/course-storage/course-storage.html @@ -77,7 +77,8 @@
+ [loading]="section.isDownloading || section.isCalculating" [canTrustDownload]="true" + [statusTranslatable]="'addon.storagemanager.downloaddatafrom' | translate: { name: section.name }" /> + (action)="prefetchModule(module)" + [statusTranslatable]="'addon.storagemanager.downloaddatafrom' | translate: { name: module.name }" /> + (click)="prefetch()" [disabled]="prefetchDisabled" + [attr.aria-label]="'addon.storagemanager.downloaddatafrom' | translate:{name: module?.name}">