MOBILE-3930 course: Don't mark labels as not viewed
parent
d42bbdf2ca
commit
a6e56edd57
|
@ -1,4 +1,4 @@
|
||||||
<ion-card *ngIf="module.handlerData && module.visibleoncoursepage !== 0">
|
<ion-card *ngIf="module.handlerData && module.visibleoncoursepage !== 0" [class.core-course-module-with-view]="moduleHasView">
|
||||||
<ng-container *ngIf="!module.handlerData.loading">
|
<ng-container *ngIf="!module.handlerData.loading">
|
||||||
<ion-item id="core-course-module-{{module.id}}" detail="false"
|
<ion-item id="core-course-module-{{module.id}}" detail="false"
|
||||||
class="ion-text-wrap core-course-module-handler core-module-main-item {{module.handlerData.class}}"
|
class="ion-text-wrap core-course-module-handler core-module-main-item {{module.handlerData.class}}"
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.core-course-module-not-viewed {
|
&.core-course-module-not-viewed ion-card.core-course-module-with-view {
|
||||||
--ion-card-border-color: var(--core-course-module-not-viewed-border-color);
|
--ion-card-border-color: var(--core-course-module-not-viewed-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,7 @@ export class CoreCourseModuleComponent implements OnInit, OnDestroy {
|
||||||
prefetchStatusIcon = ''; // Module prefetch status icon.
|
prefetchStatusIcon = ''; // Module prefetch status icon.
|
||||||
prefetchStatusText = ''; // Module prefetch status text.
|
prefetchStatusText = ''; // Module prefetch status text.
|
||||||
autoCompletionTodo = false;
|
autoCompletionTodo = false;
|
||||||
|
moduleHasView = true;
|
||||||
|
|
||||||
protected prefetchHandler?: CoreCourseModulePrefetchHandler;
|
protected prefetchHandler?: CoreCourseModulePrefetchHandler;
|
||||||
|
|
||||||
|
@ -77,6 +78,7 @@ export class CoreCourseModuleComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.module.handlerData.a11yTitle = this.module.handlerData.a11yTitle ?? this.module.handlerData.title;
|
this.module.handlerData.a11yTitle = this.module.handlerData.a11yTitle ?? this.module.handlerData.title;
|
||||||
|
this.moduleHasView = CoreCourse.moduleHasView(this.module);
|
||||||
|
|
||||||
const completionStatus = this.showCompletionConditions && this.module.completiondata?.isautomatic &&
|
const completionStatus = this.showCompletionConditions && this.module.completiondata?.isautomatic &&
|
||||||
this.module.completiondata.tracking == CoreCourseModuleCompletionTracking.COMPLETION_TRACKING_AUTOMATIC
|
this.module.completiondata.tracking == CoreCourseModuleCompletionTracking.COMPLETION_TRACKING_AUTOMATIC
|
||||||
|
|
Loading…
Reference in New Issue