From 94fbd9e0e2e05a42d95301fefdfe8363d3835ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 2 Feb 2022 12:13:58 +0100 Subject: [PATCH] MOBILE-3954 blocks: Remove download enable switch from block pages --- .../myoverview/addon-block-myoverview.html | 6 +++--- .../components/myoverview/myoverview.ts | 18 +++-------------- .../addon-block-recentlyaccessedcourses.html | 4 ++-- .../recentlyaccessedcourses.ts | 16 +-------------- .../components/sitemainmenu/sitemainmenu.ts | 4 +--- .../addon-block-starredcourses.html | 4 ++-- .../starredcourses/starredcourses.ts | 15 +------------- .../courses/pages/dashboard/dashboard.html | 8 +------- .../courses/pages/dashboard/dashboard.ts | 20 +------------------ src/core/features/courses/pages/my/my.html | 3 +-- .../components/course-format/course-format.ts | 3 --- 11 files changed, 16 insertions(+), 85 deletions(-) diff --git a/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html b/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html index 6c3d9ffa6..dbdf6d578 100644 --- a/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html +++ b/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html @@ -4,7 +4,7 @@
-
+
- + diff --git a/src/core/features/siteplugins/components/course-format/course-format.ts b/src/core/features/siteplugins/components/course-format/course-format.ts index 9fd9e6459..3f87875e8 100644 --- a/src/core/features/siteplugins/components/course-format/course-format.ts +++ b/src/core/features/siteplugins/components/course-format/course-format.ts @@ -34,7 +34,6 @@ export class CoreSitePluginsCourseFormatComponent implements OnChanges { @Input() course?: CoreCourseAnyCourseData; // The course to render. @Input() sections?: CoreCourseSection[]; // List of course sections. The status will be calculated in this component. - @Input() downloadEnabled?: boolean; // Whether the download of sections and modules is enabled. @Input() initialSectionId?: number; // The section to load first (by ID). @Input() initialSectionNumber?: number; // The section to load first (by number). @Input() moduleId?: number; // The module ID to scroll to. Must be inside the initial selected section. @@ -71,7 +70,6 @@ export class CoreSitePluginsCourseFormatComponent implements OnChanges { this.method = handler.handlerSchema.method; this.args = { courseid: this.course.id, - downloadenabled: this.downloadEnabled, }; this.initResult = handler.initResult; } @@ -81,7 +79,6 @@ export class CoreSitePluginsCourseFormatComponent implements OnChanges { this.data = { course: this.course, sections: this.sections, - downloadEnabled: this.downloadEnabled, initialSectionId: this.initialSectionId, initialSectionNumber: this.initialSectionNumber, moduleId: this.moduleId,