From 1bf74fe8b34d37d50a8919d5c95d847214feff91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Mon, 17 Sep 2018 09:05:24 +0200 Subject: [PATCH] MOBILE-2058 course: Add open in browser on course preview --- src/core/courses/pages/course-preview/course-preview.html | 4 ++++ src/core/courses/pages/course-preview/course-preview.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/courses/pages/course-preview/course-preview.html b/src/core/courses/pages/course-preview/course-preview.html index 75a6f7077..cf62ca683 100644 --- a/src/core/courses/pages/course-preview/course-preview.html +++ b/src/core/courses/pages/course-preview/course-preview.html @@ -58,6 +58,10 @@

{{ 'core.course.contents' | translate }}

+ + +

{{ 'core.openinbrowser' | translate }}

+
diff --git a/src/core/courses/pages/course-preview/course-preview.ts b/src/core/courses/pages/course-preview/course-preview.ts index 3d672fb12..703894eaa 100644 --- a/src/core/courses/pages/course-preview/course-preview.ts +++ b/src/core/courses/pages/course-preview/course-preview.ts @@ -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;