MOBILE-3320 core: Fix preferences and course preview in production
parent
797b7f48cc
commit
f1f3953749
|
@ -94,7 +94,7 @@ export class CoreCoursesCourseListItemComponent implements OnInit {
|
||||||
if (this.isEnrolled) {
|
if (this.isEnrolled) {
|
||||||
CoreCourseHelper.openCourse(this.course);
|
CoreCourseHelper.openCourse(this.course);
|
||||||
} else {
|
} else {
|
||||||
CoreNavigator.navigate(
|
CoreNavigator.navigateToSitePath(
|
||||||
'/course/' + this.course.id + '/preview',
|
'/course/' + this.course.id + '/preview',
|
||||||
{ params: { course: this.course } },
|
{ params: { course: this.course } },
|
||||||
);
|
);
|
||||||
|
|
|
@ -70,8 +70,7 @@
|
||||||
<h2>{{ 'core.mainmenu.help' | translate }}</h2>
|
<h2>{{ 'core.mainmenu.help' | translate }}</h2>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item button router-direction="forward" routerLink="preferences"
|
<ion-item button (click)="openPreferences()" [attr.aria-label]="'core.settings.preferences' | translate" detail="true">
|
||||||
[attr.aria-label]="'core.settings.preferences' | translate" detail="true">
|
|
||||||
<ion-icon name="fas-wrench" slot="start" aria-hidden="true"></ion-icon>
|
<ion-icon name="fas-wrench" slot="start" aria-hidden="true"></ion-icon>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h2>{{ 'core.settings.preferences' | translate }}</h2>
|
<h2>{{ 'core.settings.preferences' | translate }}</h2>
|
||||||
|
@ -84,8 +83,7 @@
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item-divider><ion-label></ion-label></ion-item-divider>
|
<ion-item-divider><ion-label></ion-label></ion-item-divider>
|
||||||
<ion-item button router-direction="forward" routerLink="settings"
|
<ion-item button (click)="openSettings()" [attr.aria-label]="'core.settings.appsettings' | translate" detail="true">
|
||||||
[attr.aria-label]="'core.settings.appsettings' | translate" detail="true">
|
|
||||||
<ion-icon name="fas-cogs" slot="start" aria-hidden="true"></ion-icon>
|
<ion-icon name="fas-cogs" slot="start" aria-hidden="true"></ion-icon>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h2>{{ 'core.settings.appsettings' | translate }}</h2>
|
<h2>{{ 'core.settings.appsettings' | translate }}</h2>
|
||||||
|
|
|
@ -153,6 +153,20 @@ export class CoreMainMenuMorePage implements OnInit, OnDestroy {
|
||||||
CoreNavigator.navigateToSitePath('viewer/iframe', { params: { title: item.label, url: item.url } });
|
CoreNavigator.navigateToSitePath('viewer/iframe', { params: { title: item.label, url: item.url } });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Open preferences.
|
||||||
|
*/
|
||||||
|
openPreferences(): void {
|
||||||
|
CoreNavigator.navigateToSitePath('preferences');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Open settings.
|
||||||
|
*/
|
||||||
|
openSettings(): void {
|
||||||
|
CoreNavigator.navigateToSitePath('settings');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Scan and treat a QR code.
|
* Scan and treat a QR code.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue