Skip to content
Snippets Groups Projects
Commit f2e060c7 authored by Jakob Dieterle's avatar Jakob Dieterle Committed by Jakob Dieterle
Browse files

FeedbackHistory and SubmissionTypeOverview now filter automatically by currentExam.

parent 3133eec2
No related branches found
No related tags found
1 merge request!244Resolve "Make exam a many to many field on StudentInfo model"
......@@ -55,22 +55,6 @@
</v-checkbox>
</v-col>
</v-row>
<v-row>
<v-col md="6">
<v-select
v-model="model.filterByExams"
label="Exam"
:items="examTypes"
return-object
item-text="moduleReference"
multiple
hint="Filter by exam"
persistent-hint
clearable
@change="$emit('input', model)"
/>
</v-col>
</v-row>
<v-row>
<v-col>
<v-select
......@@ -151,7 +135,6 @@ export type FeedbackSearchOptionsModel = {
showFinal: boolean,
caseSensitive: boolean,
useRegex: boolean,
filterByExams: Exam[],
filterByTutors: Tutor[],
filterByStage: FeedbackStageEnum | undefined,
filterByLabels: FeedbackLabel[],
......@@ -168,7 +151,6 @@ const FeedbackSearchOptionsProps = Vue.extend({
showFinal: true,
caseSensitive: false,
useRegex: false,
filterByExams: [],
filterByTutors: [],
filterByStage: undefined,
filterByLabels: [],
......@@ -183,8 +165,6 @@ const FeedbackSearchOptionsProps = Vue.extend({
export default class FeedbackSearchOptions extends FeedbackSearchOptionsProps {
feedbackStages = Object.entries(FeedbackStageEnum).map(([key, value]) => ({text: key, value}))
examTypes: Exam[] = []
get tutors() { return TutorOverview.state.tutors }
get isReviewer() { return Authentication.isReviewer }
......@@ -200,7 +180,6 @@ export default class FeedbackSearchOptions extends FeedbackSearchOptionsProps {
created () {
this.loadTutors()
this.loadExamTypes()
}
}
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment