[+] Create assignments property
This commit is contained in:
@@ -8,11 +8,15 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {Component, Prop, Vue} from 'vue-property-decorator';
|
import {Component, Prop, Vue} from 'vue-property-decorator';
|
||||||
|
import {Assignment} from '@/components/app/app';
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
export default class AssignmentTypeHead extends Vue
|
export default class AssignmentTypeHead extends Vue
|
||||||
{
|
{
|
||||||
@Prop({required: true}) typeName: string;
|
@Prop({required: true}) typeName: string;
|
||||||
|
@Prop({required: true}) assignments: Assignment[];
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,9 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<AssignmentTypeHead v-for="type in getAssignmentTypes()"
|
<AssignmentTypeHead v-for="type in getAssignmentTypes()" :key="type"
|
||||||
:type-name="type" :key="type"></AssignmentTypeHead>
|
:type-name="type" :assignments="course.assignments">
|
||||||
|
</AssignmentTypeHead>
|
||||||
|
|
||||||
<!--AssignmentEntry v-for="assignment in course.assignments"
|
<!--AssignmentEntry v-for="assignment in course.assignments"
|
||||||
:assignment="assignment" :unread="false">
|
:assignment="assignment" :unread="false">
|
||||||
|
|||||||
Reference in New Issue
Block a user