[+] Bind the displayed course to the course page
This commit is contained in:
@@ -10,7 +10,9 @@
|
|||||||
<overall v-if="selectedTab === 'overall' && assignmentsReady"
|
<overall v-if="selectedTab === 'overall' && assignmentsReady"
|
||||||
:courses="filteredCourses">
|
:courses="filteredCourses">
|
||||||
</overall>
|
</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>
|
</div>
|
||||||
|
|
||||||
<loading v-if="loading !== ''" :text="loading" :error="loadingError"></loading>
|
<loading v-if="loading !== ''" :text="loading" :error="loadingError"></loading>
|
||||||
|
|||||||
Reference in New Issue
Block a user