MOBILE-3591 courses: Fix courses navigation

main
Pau Ferrer Ocaña 2020-12-04 16:10:10 +01:00
parent 49baacf904
commit e4bb89d401
6 changed files with 12 additions and 9 deletions

View File

@ -98,10 +98,10 @@ export class CoreCoursesCourseListItemComponent implements OnInit {
/* if (this.isEnrolled) { /* if (this.isEnrolled) {
CoreCourseHelper.instance.openCourse(this.course); CoreCourseHelper.instance.openCourse(this.course);
} else { } else {
this.navCtrl.navigateForward('/courses/preview', { queryParams: { course: this.course } }); this.navCtrl.navigateForward('/main/home/courses/preview', { queryParams: { course: this.course } });
} */ } */
// @todo while opencourse function is not completed, open preview page. // @todo while opencourse function is not completed, open preview page.
this.navCtrl.navigateForward('/courses/preview', { queryParams: { course: this.course } }); this.navCtrl.navigateForward('/main/home/courses/preview', { queryParams: { course: this.course } });
} }
} }

View File

@ -39,7 +39,7 @@
</ion-label> </ion-label>
</ion-item-divider> </ion-item-divider>
<section *ngFor="let category of categories"> <section *ngFor="let category of categories">
<ion-item class="ion-text-wrap" router-direction="forward" [routerLink]="['/courses/categories', category.id]" <ion-item class="ion-text-wrap" router-direction="forward" [routerLink]="['/main/home/courses/categories', category.id]"
[title]="category.name" detail> [title]="category.name" detail>
<ion-icon name="fas-folder" slot="start"></ion-icon> <ion-icon name="fas-folder" slot="start"></ion-icon>
<ion-label> <ion-label>

View File

@ -83,7 +83,7 @@ export class CoreCoursesDashboardPage implements OnInit, OnDestroy {
* Open page to manage courses storage. * Open page to manage courses storage.
*/ */
manageCoursesStorage(): void { manageCoursesStorage(): void {
// @todo this.navCtrl.navigateForward(['/courses/storage']); // @todo this.navCtrl.navigateForward(['/main/home/courses/storage']);
} }
/** /**

View File

@ -60,7 +60,7 @@
</ion-content> </ion-content>
<ng-template #allCourseList> <ng-template #allCourseList>
<ion-item button class="ion-text-wrap" router-direction="forward" routerLink="/courses/all" detail> <ion-item button class="ion-text-wrap" router-direction="forward" routerLink="/main/home/courses/all" detail>
<ion-icon name="fas-graduation-cap" fixed-width slot="start"></ion-icon> <ion-icon name="fas-graduation-cap" fixed-width slot="start"></ion-icon>
<ion-label> <ion-label>
<h2>{{ 'core.courses.availablecourses' | translate}}</h2> <h2>{{ 'core.courses.availablecourses' | translate}}</h2>
@ -76,7 +76,7 @@
</ng-template> </ng-template>
<ng-template #categories> <ng-template #categories>
<ion-item button class="ion-text-wrap" router-direction="forward" routerLink="/courses/categories" detail> <ion-item button class="ion-text-wrap" router-direction="forward" routerLink="/main/home/courses/categories" detail>
<ion-icon name="folder" slot="start"></ion-icon> <ion-icon name="folder" slot="start"></ion-icon>
<ion-label> <ion-label>
<h2>{{ 'core.courses.categories' | translate}}</h2> <h2>{{ 'core.courses.categories' | translate}}</h2>
@ -85,7 +85,7 @@
</ng-template> </ng-template>
<ng-template #enrolledCourseList> <ng-template #enrolledCourseList>
<ion-item button class="ion-text-wrap" router-direction="forward" routerLink="/courses/my" detail> <ion-item button class="ion-text-wrap" router-direction="forward" routerLink="/main/home/courses/my" detail>
<ion-icon name="fas-graduation-cap" fixed-width slot="start"> <ion-icon name="fas-graduation-cap" fixed-width slot="start">
</ion-icon> </ion-icon>
<ion-label><h2>{{ 'core.courses.mycourses' | translate}}</h2></ion-label> <ion-label><h2>{{ 'core.courses.mycourses' | translate}}</h2></ion-label>
@ -93,7 +93,7 @@
</ng-template> </ng-template>
<ng-template #courseSearch> <ng-template #courseSearch>
<ion-item button class="ion-text-wrap" router-direction="forward" routerLink="/courses/search" detail> <ion-item button class="ion-text-wrap" router-direction="forward" routerLink="/main/home/courses/search" detail>
<ion-icon name="fas-search" slot="start"></ion-icon> <ion-icon name="fas-search" slot="start"></ion-icon>
<ion-label><h2>{{ 'core.courses.searchcourses' | translate}}</h2></ion-label> <ion-label><h2>{{ 'core.courses.searchcourses' | translate}}</h2></ion-label>
</ion-item> </ion-item>

View File

@ -194,7 +194,7 @@ export class CoreSiteHomeIndexPage implements OnInit, OnDestroy {
* Open page to manage courses storage. * Open page to manage courses storage.
*/ */
manageCoursesStorage(): void { manageCoursesStorage(): void {
// @todo this.navCtrl.navigateForward(['/courses/storage']); // @todo this.navCtrl.navigateForward(['/main/home/courses/storage']);
} }
/** /**

View File

@ -104,6 +104,9 @@
ion-toolbar { ion-toolbar {
--color: var(--custom-toolbar-color, var(--ion-color-primary-contrast)); --color: var(--custom-toolbar-color, var(--ion-color-primary-contrast));
--background: var(--ion-statusbar-background); --background: var(--ion-statusbar-background);
ion-button {
--ion-toolbar-color: transparent;
}
ion-spinner { ion-spinner {
--color: var(--custom-toolbar-color, var(--ion-color-primary-contrast)); --color: var(--custom-toolbar-color, var(--ion-color-primary-contrast));