[+] Create assignments property
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user