MOBILE-3591 courses: Fix courses navigation
parent
49baacf904
commit
e4bb89d401
|
@ -98,10 +98,10 @@ export class CoreCoursesCourseListItemComponent implements OnInit {
|
|||
/* if (this.isEnrolled) {
|
||||
CoreCourseHelper.instance.openCourse(this.course);
|
||||
} 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.
|
||||
this.navCtrl.navigateForward('/courses/preview', { queryParams: { course: this.course } });
|
||||
this.navCtrl.navigateForward('/main/home/courses/preview', { queryParams: { course: this.course } });
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
</ion-label>
|
||||
</ion-item-divider>
|
||||
<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>
|
||||
<ion-icon name="fas-folder" slot="start"></ion-icon>
|
||||
<ion-label>
|
||||
|
|
|
@ -83,7 +83,7 @@ export class CoreCoursesDashboardPage implements OnInit, OnDestroy {
|
|||
* Open page to manage courses storage.
|
||||
*/
|
||||
manageCoursesStorage(): void {
|
||||
// @todo this.navCtrl.navigateForward(['/courses/storage']);
|
||||
// @todo this.navCtrl.navigateForward(['/main/home/courses/storage']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
</ion-content>
|
||||
|
||||
<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-label>
|
||||
<h2>{{ 'core.courses.availablecourses' | translate}}</h2>
|
||||
|
@ -76,7 +76,7 @@
|
|||
</ng-template>
|
||||
|
||||
<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-label>
|
||||
<h2>{{ 'core.courses.categories' | translate}}</h2>
|
||||
|
@ -85,7 +85,7 @@
|
|||
</ng-template>
|
||||
|
||||
<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>
|
||||
<ion-label><h2>{{ 'core.courses.mycourses' | translate}}</h2></ion-label>
|
||||
|
@ -93,7 +93,7 @@
|
|||
</ng-template>
|
||||
|
||||
<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-label><h2>{{ 'core.courses.searchcourses' | translate}}</h2></ion-label>
|
||||
</ion-item>
|
||||
|
|
|
@ -194,7 +194,7 @@ export class CoreSiteHomeIndexPage implements OnInit, OnDestroy {
|
|||
* Open page to manage courses storage.
|
||||
*/
|
||||
manageCoursesStorage(): void {
|
||||
// @todo this.navCtrl.navigateForward(['/courses/storage']);
|
||||
// @todo this.navCtrl.navigateForward(['/main/home/courses/storage']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -104,6 +104,9 @@
|
|||
ion-toolbar {
|
||||
--color: var(--custom-toolbar-color, var(--ion-color-primary-contrast));
|
||||
--background: var(--ion-statusbar-background);
|
||||
ion-button {
|
||||
--ion-toolbar-color: transparent;
|
||||
}
|
||||
|
||||
ion-spinner {
|
||||
--color: var(--custom-toolbar-color, var(--ion-color-primary-contrast));
|
||||
|
|
Loading…
Reference in New Issue