[+] Import course selection element in app

This commit is contained in:
Hykilpikonna
2020-04-11 19:00:07 -04:00
parent 8b1ffb412c
commit 7609513a07
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -11,9 +11,10 @@ import Course from '@/logic/course';
import LoginUser from '@/logic/login-user';
import NavController from '@/logic/nav-controller';
import Info from '@/statics/Info.vue';
import CourseSelection from '@/pages/course-selection/course-selection.vue';
@Component({
components: {Login, Navigation, Overall, Loading, CoursePage, Info},
components: {Login, Navigation, Overall, Loading, CoursePage, Info, CourseSelection},
})
export default class App extends Vue
{
+1
View File
@@ -10,6 +10,7 @@
<div id="app-content" v-if="assignmentsReady && loading === ''">
<overall v-if="nav.id === 'overall'" :courses="gradedCourses"></overall>
<course-page v-if="nav.id === 'course'" :course="gradedCourses.find(c => +c.id === +nav.info.id)"></course-page>
<course-selection v-if="nav.id === 'course-selection'"></course-selection>
</div>
<loading v-if="loading !== ''" :text="loading" :error="loadingError"/>