[F] Fix error message when closing course details

This commit is contained in:
Hykilpikonna
2020-04-27 21:09:17 -04:00
parent d9d0ea3168
commit 3cfb888a5f
@@ -30,7 +30,8 @@
</div>
<!-- Detail / Comments Popup -->
<el-dialog id="detail-popup" v-if="detailsCourse" :visible.sync="detailsCourse" width="50%" top="10vh">
<el-dialog id="detail-popup" v-if="detailsCourse" :visible="detailsCourse != null" width="50%" top="10vh"
:before-close="closeDetails">
<span slot="title" class="header">
<div class="title">Ratings for {{detailsCourse.name}}</div>
<span class="subtitle">And for {{detailsCourse.teacher}}</span>
@@ -104,6 +105,11 @@
{
this.detailsCourse = this.detailsCourse == course ? null as any as CourseInfo : course;
}
closeDetails()
{
this.detailsCourse = null as any as CourseInfo;
}
}
</script>