Merge pull request #3233 from dpalou/MOBILE-3833

Mobile 3833
main
Pau Ferrer Ocaña 2022-04-06 09:18:54 +02:00 committed by GitHub
commit 87c8177d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -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,
},

View File

@ -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>