[+] Pass in app as a property to course selection page
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
<div id="app-content" v-if="assignmentsReady && loading === ''">
|
<div id="app-content" v-if="assignmentsReady && loading === ''">
|
||||||
<overall v-if="nav.id === 'overall'" :courses="gradedCourses"></overall>
|
<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-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>
|
</div>
|
||||||
|
|
||||||
<loading v-if="loading !== ''" :text="loading" :error="loadingError"/>
|
<loading v-if="loading !== ''" :text="loading" :error="loadingError"/>
|
||||||
|
|||||||
@@ -11,12 +11,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<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
|
@Component
|
||||||
export default class CourseSelection extends Vue
|
export default class CourseSelection extends Vue
|
||||||
{
|
{
|
||||||
|
@Prop({required: true}) app: App;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user