[+] Show course page only if select tab is a course

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