MOBILE-2058 course: Add open in browser on course preview
parent
a6b6d28d40
commit
1bf74fe8b3
|
@ -58,6 +58,10 @@
|
|||
<ion-icon name="briefcase" item-start></ion-icon>
|
||||
<h2>{{ 'core.course.contents' | translate }}</h2>
|
||||
</a>
|
||||
<a ion-item [href]="courseUrl" core-link [title]="course.fullname">
|
||||
<ion-icon name="open" item-start></ion-icon>
|
||||
<h2>{{ 'core.openinbrowser' | translate }}</h2>
|
||||
</a>
|
||||
</ion-list>
|
||||
</core-loading>
|
||||
</ion-content>
|
||||
|
|
|
@ -48,6 +48,7 @@ export class CoreCoursesCoursePreviewPage implements OnDestroy {
|
|||
title: 'core.course.downloadcourse'
|
||||
};
|
||||
downloadCourseEnabled: boolean;
|
||||
courseUrl: string;
|
||||
|
||||
protected guestWSAvailable: boolean;
|
||||
protected isGuestEnabled = false;
|
||||
|
@ -55,7 +56,6 @@ export class CoreCoursesCoursePreviewPage implements OnDestroy {
|
|||
protected enrollmentMethods: any[];
|
||||
protected waitStart = 0;
|
||||
protected enrolUrl: string;
|
||||
protected courseUrl: string;
|
||||
protected paypalReturnUrl: string;
|
||||
protected isMobile: boolean;
|
||||
protected isDesktop: boolean;
|
||||
|
|
Loading…
Reference in New Issue