commit
87c8177d26
|
@ -253,7 +253,7 @@ export class AddonModBookContentsPage implements OnInit, OnDestroy {
|
||||||
componentProps: {
|
componentProps: {
|
||||||
moduleId: this.cmId,
|
moduleId: this.cmId,
|
||||||
chapters: this.chapters,
|
chapters: this.chapters,
|
||||||
selected: visibleChapter,
|
selected: visibleChapter?.id,
|
||||||
courseId: this.courseId,
|
courseId: this.courseId,
|
||||||
book: this.book,
|
book: this.book,
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,16 +7,16 @@
|
||||||
|
|
||||||
<!-- Content. -->
|
<!-- Content. -->
|
||||||
<core-loading [hideUntil]="!showLoading">
|
<core-loading [hideUntil]="!showLoading">
|
||||||
<core-tabs [hideUntil]="!showLoading" [selectedIndex]="selectedTab">
|
|
||||||
<!-- Index/Preview tab. -->
|
|
||||||
<core-tab [title]="'addon.mod_lesson.preview' | translate" (ionSelect)="indexSelected()">
|
|
||||||
<ng-template>
|
|
||||||
|
|
||||||
<!-- Activity info. -->
|
<!-- Activity info. -->
|
||||||
<core-course-module-info [module]="module" [description]="description" [component]="component" [componentId]="componentId"
|
<core-course-module-info [module]="module" [description]="description" [component]="component" [componentId]="componentId"
|
||||||
[courseId]="courseId" [hasDataToSync]="hasOffline" (completionChanged)="onCompletionChange()">
|
[courseId]="courseId" [hasDataToSync]="hasOffline" (completionChanged)="onCompletionChange()">
|
||||||
</core-course-module-info>
|
</core-course-module-info>
|
||||||
|
|
||||||
|
<core-tabs [hideUntil]="!showLoading" [selectedIndex]="selectedTab">
|
||||||
|
<!-- Index/Preview tab. -->
|
||||||
|
<core-tab [title]="'addon.mod_lesson.preview' | translate" (ionSelect)="indexSelected()">
|
||||||
|
<ng-template>
|
||||||
<!-- Prevent access messages. Only show the first one. -->
|
<!-- Prevent access messages. Only show the first one. -->
|
||||||
<ion-card class="core-info-card" *ngIf="lesson && preventReasons.length">
|
<ion-card class="core-info-card" *ngIf="lesson && preventReasons.length">
|
||||||
<ion-item>
|
<ion-item>
|
||||||
|
|
Loading…
Reference in New Issue