[+] Create assignments property

This commit is contained in:
Hykilpikonna
2019-11-05 17:40:50 -05:00
parent 880e331c99
commit 14de2e0b23
2 changed files with 7 additions and 2 deletions
@@ -8,11 +8,15 @@
<script lang="ts">
import {Component, Prop, Vue} from 'vue-property-decorator';
import {Assignment} from '@/components/app/app';
@Component
export default class AssignmentTypeHead extends Vue
{
@Prop({required: true}) typeName: string;
@Prop({required: true}) assignments: Assignment[];
}
</script>
+3 -2
View File
@@ -14,8 +14,9 @@
</el-col>
</el-row>
<AssignmentTypeHead v-for="type in getAssignmentTypes()"
:type-name="type" :key="type"></AssignmentTypeHead>
<AssignmentTypeHead v-for="type in getAssignmentTypes()" :key="type"
:type-name="type" :assignments="course.assignments">
</AssignmentTypeHead>
<!--AssignmentEntry v-for="assignment in course.assignments"
:assignment="assignment" :unread="false">