From 0b4c3dc88e678e3b9387f510798b80837b1bf0e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 5 Sep 2024 18:05:23 +0200 Subject: [PATCH] MOBILE-4442 course: Create a separate component to manage sections --- .../course-format/course-format.html | 67 +++-------------- .../course-format/course-format.scss | 27 ------- .../components/course-format/course-format.ts | 24 ++---- .../course-section/course-section.html | 48 ++++++++++++ .../course-section/course-section.scss | 30 ++++++++ .../course-section/course-section.ts | 74 +++++++++++++++++++ 6 files changed, 169 insertions(+), 101 deletions(-) create mode 100644 src/core/features/course/components/course-section/course-section.html create mode 100644 src/core/features/course/components/course-section/course-section.scss create mode 100644 src/core/features/course/components/course-section/course-section.ts diff --git a/src/core/features/course/components/course-format/course-format.html b/src/core/features/course/components/course-format/course-format.html index 38d99fd84..add8466bd 100644 --- a/src/core/features/course/components/course-format/course-format.html +++ b/src/core/features/course/components/course-format/course-format.html @@ -8,10 +8,12 @@ -
+
- - + + @@ -19,13 +21,16 @@
-
+
@for (section of sections; track section.id) { @if ($index <= lastShownSectionIndex) { - + } } @@ -65,55 +70,3 @@