[O] Pass in AssignmentType object for AssignmentTypeHead component

This commit is contained in:
Hykilpikonna
2019-11-09 20:44:23 -05:00
parent ae94f54a7b
commit 472df39ac8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ export default class Course
return {name: type, id: typeAssignments[0].typeId, weight: weight, scoreMax: scoreMax, score: score}
})
}
return this._cacheAssignmentTypes;
}
}
@@ -17,14 +17,14 @@
<script lang="ts">
import {Component, Prop, Vue} from 'vue-property-decorator';
import AssignmentEntry from '@/pages/overall/overall-course/assignment-entry/assignment-entry.vue';
import {Assignment} from '@/logic/course';
import {Assignment, AssignmentType} from '@/logic/course';
@Component({
components: {AssignmentEntry}
})
export default class AssignmentTypeHead extends Vue
{
@Prop({required: true}) typeName: string;
@Prop({required: true}) type: AssignmentType;
@Prop({required: true}) assignments: Assignment[];
get filteredAssignments()