[+] Create courses prop. and pass it from app.vue
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<navigation :courses="courses" v-on:navigation:select="onNavigate"></navigation>
|
<navigation :courses="courses" v-on:navigation:select="onNavigate"></navigation>
|
||||||
|
|
||||||
<div id="app-content">
|
<div id="app-content">
|
||||||
<overall v-if="selectedTab === 'overall' && assignmentsReady"></overall>
|
<overall :courses="courses" v-if="selectedTab === 'overall' && assignmentsReady"></overall>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import {Component, Vue} from 'vue-property-decorator';
|
import {Component, Prop, Vue} from 'vue-property-decorator';
|
||||||
import GraphOverall from '@/pages/overall/graph-overall/graph-overall';
|
import GraphOverall from '@/pages/overall/graph-overall/graph-overall';
|
||||||
|
import {Course} from '@/components/app/app';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
components: {GraphOverall}
|
components: {GraphOverall}
|
||||||
})
|
})
|
||||||
export default class Overall extends Vue
|
export default class Overall extends Vue
|
||||||
{
|
{
|
||||||
|
@Prop({required: true}) courses: any;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user