[O] Pass in AssignmentType object for AssignmentTypeHead component
This commit is contained in:
+1
-1
@@ -258,7 +258,7 @@ export default class Course
|
|||||||
return {name: type, id: typeAssignments[0].typeId, weight: weight, scoreMax: scoreMax, score: score}
|
return {name: type, id: typeAssignments[0].typeId, weight: weight, scoreMax: scoreMax, score: score}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return this._cacheAssignmentTypes;
|
return this._cacheAssignmentTypes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,14 +17,14 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {Component, Prop, Vue} from 'vue-property-decorator';
|
import {Component, Prop, Vue} from 'vue-property-decorator';
|
||||||
import AssignmentEntry from '@/pages/overall/overall-course/assignment-entry/assignment-entry.vue';
|
import AssignmentEntry from '@/pages/overall/overall-course/assignment-entry/assignment-entry.vue';
|
||||||
import {Assignment} from '@/logic/course';
|
import {Assignment, AssignmentType} from '@/logic/course';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
components: {AssignmentEntry}
|
components: {AssignmentEntry}
|
||||||
})
|
})
|
||||||
export default class AssignmentTypeHead extends Vue
|
export default class AssignmentTypeHead extends Vue
|
||||||
{
|
{
|
||||||
@Prop({required: true}) typeName: string;
|
@Prop({required: true}) type: AssignmentType;
|
||||||
@Prop({required: true}) assignments: Assignment[];
|
@Prop({required: true}) assignments: Assignment[];
|
||||||
|
|
||||||
get filteredAssignments()
|
get filteredAssignments()
|
||||||
|
|||||||
Reference in New Issue
Block a user