MOBILE-3833 module: Hide module navigation on non main pages

main
Pau Ferrer Ocaña 2022-03-30 13:24:28 +02:00
parent a17886ad53
commit f25a51b5d1
3 changed files with 7 additions and 7 deletions

View File

@ -32,6 +32,6 @@
</core-loading>
<core-course-module-navigation collapsible-footer appearOnBottom [hidden]="showLoading" [courseId]="courseId" [currentModuleId]="module.id"
(completionChanged)="onCompletionChange()">
<core-course-module-navigation collapsible-footer appearOnBottom *ngIf="!subfolder" [hidden]="showLoading" [courseId]="courseId"
[currentModuleId]="module.id" (completionChanged)="onCompletionChange()">
</core-course-module-navigation>

View File

@ -30,8 +30,8 @@
<core-loading [hideUntil]="!showLoading">
<!-- Activity info. -->
<core-course-module-info [module]="module" [description]="description" [component]="component" [componentId]="componentId"
[courseId]="courseId" (completionChanged)="onCompletionChange()">
<core-course-module-info *ngIf="isMainPage" [module]="module" [description]="description" [component]="component"
[componentId]="componentId" [courseId]="courseId" (completionChanged)="onCompletionChange()">
</core-course-module-info>
<div *ngIf="pageIsOffline || hasOffline || pageWarning">
@ -54,7 +54,7 @@
</ion-item>
</ion-card>
</div>
<div class="ion-padding addon-mod_wiki-page-content">
<div class="ion-padding-horizontal addon-mod_wiki-page-content">
<h2 *ngIf="pageTitle">{{pageTitle}}</h2>
<article [ngClass]="{'addon-mod_wiki-noedit': !canEdit}">
<core-format-text *ngIf="pageContent" [component]="component" [componentId]="componentId" [text]="pageContent"
@ -71,7 +71,8 @@
</div>
</core-loading>
<core-course-module-navigation collapsible-footer [hidden]="showLoading" [courseId]="courseId" [currentModuleId]="module.id">
<core-course-module-navigation collapsible-footer *ngIf="isMainPage" [hidden]="showLoading" [courseId]="courseId"
[currentModuleId]="module.id">
</core-course-module-navigation>
<ion-fab slot="fixed" core-fab vertical="bottom" horizontal="end" *ngIf="canEdit">

View File

@ -11,7 +11,6 @@ $addon-mod-wiki-toc-level-padding: 12px !default;
.addon-mod_wiki-page-content {
background-color: var(--ion-item-background);
border-top: 1px solid var(--stroke);
padding-bottom: 10px;
}