commit
87c8177d26
|
@ -253,7 +253,7 @@ export class AddonModBookContentsPage implements OnInit, OnDestroy {
|
|||
componentProps: {
|
||||
moduleId: this.cmId,
|
||||
chapters: this.chapters,
|
||||
selected: visibleChapter,
|
||||
selected: visibleChapter?.id,
|
||||
courseId: this.courseId,
|
||||
book: this.book,
|
||||
},
|
||||
|
|
|
@ -7,16 +7,16 @@
|
|||
|
||||
<!-- Content. -->
|
||||
<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. -->
|
||||
<core-course-module-info [module]="module" [description]="description" [component]="component" [componentId]="componentId"
|
||||
[courseId]="courseId" [hasDataToSync]="hasOffline" (completionChanged)="onCompletionChange()">
|
||||
</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. -->
|
||||
<ion-card class="core-info-card" *ngIf="lesson && preventReasons.length">
|
||||
<ion-item>
|
||||
|
|
Loading…
Reference in New Issue