[+] Pass in app as a property to course selection page

This commit is contained in:
Hykilpikonna
2020-04-11 19:02:27 -04:00
parent 7609513a07
commit 8ea8a3474f
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -10,7 +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>
<course-selection v-if="nav.id === 'course-selection'" :app="this"></course-selection>
</div>
<loading v-if="loading !== ''" :text="loading" :error="loadingError"/>
@@ -11,12 +11,13 @@
</template>
<script lang="ts">
import {Component, Vue} from 'vue-property-decorator'
import {Component, Prop, Vue} from 'vue-property-decorator'
import App from '@/components/app/app';
@Component
export default class CourseSelection extends Vue
{
@Prop({required: true}) app: App;
}
</script>