diff --git a/src/vue/components/CardList.vue b/src/vue/components/CardList.vue
index 2bdc083d..93bb5e64 100644
--- a/src/vue/components/CardList.vue
+++ b/src/vue/components/CardList.vue
@@ -4,7 +4,7 @@
@@ -117,6 +117,10 @@ export default {
console.log(this.courses)
},
methods: {
+ thumbnail(course) {
+ if (course.image_download_url != null) return course.image_download_url;
+ return course.course_settings ? course.course_settings?.image.path : '';
+ },
isInvitedCourse,
enrollToCourse(enrollCode) {
window.location.href = this.domain + '/enroll/' + enrollCode;
diff --git a/src/vue/components/NotLoggedInIntro.vue b/src/vue/components/NotLoggedInIntro.vue
index 8cea982d..8fddadde 100644
--- a/src/vue/components/NotLoggedInIntro.vue
+++ b/src/vue/components/NotLoggedInIntro.vue
@@ -12,7 +12,7 @@
@@ -35,7 +35,7 @@
@@ -92,6 +92,12 @@ export default {
domain: window.location.origin,
}
},
+ computed: {
+ thumbnail() {
+ if (this.newestCourse?.image_download_url != null) return this.newestCourse.image_download_url;
+ return this.newestCourse.course_settings ? this.newestCourse.course_settings?.image.path : '';
+ },
+ },
methods: {
enrollToCourse(enrollCode) {
window.location.href = this.domain + '/enroll/' + enrollCode;