[+] Create detailsComments field
This commit is contained in:
@@ -67,6 +67,7 @@
|
|||||||
@Prop({required: true}) uniqueCourse: UniqueCourse;
|
@Prop({required: true}) uniqueCourse: UniqueCourse;
|
||||||
|
|
||||||
detailsCourse: CourseInfo = null as any as CourseInfo
|
detailsCourse: CourseInfo = null as any as CourseInfo
|
||||||
|
detailsComments: CourseInfoRating[] = null as any as []
|
||||||
|
|
||||||
get ratingCriteria() {return RATING_CRITERIA}
|
get ratingCriteria() {return RATING_CRITERIA}
|
||||||
get rating() {return this.detailsCourse.rating}
|
get rating() {return this.detailsCourse.rating}
|
||||||
@@ -119,6 +120,7 @@
|
|||||||
closeDetails()
|
closeDetails()
|
||||||
{
|
{
|
||||||
this.detailsCourse = null as any as CourseInfo;
|
this.detailsCourse = null as any as CourseInfo;
|
||||||
|
this.detailsComments = null as any as []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user