diff --git a/src/addons/storagemanager/pages/course-storage/course-storage.html b/src/addons/storagemanager/pages/course-storage/course-storage.html index c780b641bdd..30931ed8b3d 100644 --- a/src/addons/storagemanager/pages/course-storage/course-storage.html +++ b/src/addons/storagemanager/pages/course-storage/course-storage.html @@ -19,7 +19,10 @@

{{ 'addon.storagemanager.coursedownloads' | translate }}

- {{ title }} + + + +

{{ 'addon.storagemanager.totaldownloads' | translate }}

@@ -77,7 +80,7 @@

{{ 'addon.storagemanager.coursedownloads' | translate }}

-
+
@@ -126,9 +129,9 @@

{{ 'addon.storagemanager.coursedownloads' | translate }}

+ module.downloadStatus != statusDownloaded && module.modname !== 'label'" + [status]="module.downloadStatus" [enabled]="true" [canTrustDownload]="true" + [loading]="module.spinner || module.handlerData.spinner" (action)="prefetchModule(module)"> @@ -136,7 +139,8 @@

{{ 'addon.storagemanager.coursedownloads' | translate }}

[attr.aria-label]="'addon.storagemanager.deletedatafrom' | translate: { name: module.name }">
-

+

{{ 'core.notdownloadable' | translate }}

diff --git a/src/addons/storagemanager/pages/course-storage/course-storage.ts b/src/addons/storagemanager/pages/course-storage/course-storage.ts index f0b1e18ea8f..b840e7f7223 100644 --- a/src/addons/storagemanager/pages/course-storage/course-storage.ts +++ b/src/addons/storagemanager/pages/course-storage/course-storage.ts @@ -715,6 +715,16 @@ export class AddonStorageManagerCourseStoragePage implements OnInit, OnDestroy { } } + /** + * Check if the provided section can be downloaded. + * + * @param section Section to check. + * @returns Can be downloaded or not. + */ + canDownloadSection(section: AddonStorageManagerCourseSection): boolean { + return section.modules.some(module => module.modname !== 'label'); + } + /** * Toggle expand status. *