[+] Bind the displayed course to the course page

This commit is contained in:
Hykilpikonna
2019-10-14 18:28:37 -04:00
parent a074a9fbed
commit 665567bf88
+3 -1
View File
@@ -10,7 +10,9 @@
<overall v-if="selectedTab === 'overall' && assignmentsReady"
:courses="filteredCourses">
</overall>
<course-page v-if="selectedTab.split('/')[0] === 'course'"></course-page>
<course-page v-if="selectedTab.split('/')[0] === 'course'"
:course="filteredCourses.find(c => +c.id === +selectedTab.split('/')[1])">
</course-page>
</div>
<loading v-if="loading !== ''" :text="loading" :error="loadingError"></loading>