From 02622db2d01e02e0290ecb889e9577e6c14174d5 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 4 Jan 2018 10:08:28 +0100 Subject: [PATCH] MOBILE-2302 myoverview: Remove roundProgress and move filter option --- .../course-progress/course-progress.html | 24 +++---------------- .../course-progress/course-progress.ts | 3 --- .../pages/my-overview/my-overview.html | 14 +++++------ .../courses/pages/my-overview/my-overview.ts | 1 - 4 files changed, 10 insertions(+), 32 deletions(-) diff --git a/src/core/courses/components/course-progress/course-progress.html b/src/core/courses/components/course-progress/course-progress.html index fa01a2fe5..b9cc76d57 100644 --- a/src/core/courses/components/course-progress/course-progress.html +++ b/src/core/courses/components/course-progress/course-progress.html @@ -1,26 +1,8 @@ - -
-
-
{{course.progress}}%
-
- - - {{course.progress}}% - - - -
-
-
- -
-
+

- - + + diff --git a/src/core/courses/components/course-progress/course-progress.ts b/src/core/courses/components/course-progress/course-progress.ts index 54b5771eb..a3dd08c3c 100644 --- a/src/core/courses/components/course-progress/course-progress.ts +++ b/src/core/courses/components/course-progress/course-progress.ts @@ -31,7 +31,6 @@ import { CoreUtilsProvider } from '../../../../providers/utils/utils'; }) export class CoreCoursesCourseProgressComponent implements OnInit { @Input() course: any; // The course to render. - @Input() roundProgress?: boolean|string; // Whether to show the progress. @Input() showSummary?: boolean|string; // Whether to show the summary. actionsLoaded = true; @@ -57,8 +56,6 @@ export class CoreCoursesCourseProgressComponent implements OnInit { */ ngOnInit() { // @todo: Handle course prefetch. - // @todo: Handle course handlers (participants, etc.). - this.roundProgress = this.utils.isTrueOrOne(this.roundProgress); this.showSummary = this.utils.isTrueOrOne(this.showSummary); } diff --git a/src/core/courses/pages/my-overview/my-overview.html b/src/core/courses/pages/my-overview/my-overview.html index b45f3575f..d7be21e0e 100644 --- a/src/core/courses/pages/my-overview/my-overview.html +++ b/src/core/courses/pages/my-overview/my-overview.html @@ -6,6 +6,9 @@ + @@ -14,6 +17,7 @@ +
{{ 'core.courses.timeline' | translate }} {{ 'core.courses.courses' | translate }} @@ -31,7 +35,7 @@
- +
@@ -49,11 +53,7 @@ - - - - - +
@@ -67,7 +67,7 @@
- +
diff --git a/src/core/courses/pages/my-overview/my-overview.ts b/src/core/courses/pages/my-overview/my-overview.ts index a1022b51d..ce7d535b2 100644 --- a/src/core/courses/pages/my-overview/my-overview.ts +++ b/src/core/courses/pages/my-overview/my-overview.ts @@ -166,7 +166,6 @@ export class CoreCoursesMyOverviewPage { // Load course options of the course. return this.coursesProvider.getCoursesOptions(courseIds).then((options) => { courses.forEach((course) => { - course.showProgress = true; course.progress = isNaN(parseInt(course.progress, 10)) ? false : parseInt(course.progress, 10); course.navOptions = options.navOptions[course.id];