Skip to content
Snippets Groups Projects
Commit 3144b8eb authored by Julian's avatar Julian
Browse files

Show extramarks in slideiterator of coursebook

parent 1624600b
No related branches found
No related tags found
1 merge request!362Resolve "Add personal note management dialog in course book"
Pipeline #189877 passed with warnings
......@@ -10,11 +10,13 @@ import LessonInformation from "../documentation/LessonInformation.vue";
import { updateParticipationStatuses } from "./participationStatus.graphql";
import SlideIterator from "aleksis.core/components/generic/SlideIterator.vue";
import PersonalNotes from "../personal_notes/PersonalNotes.vue";
import ExtraMarkChip from "../../extra_marks/ExtraMarkChip.vue";
export default {
name: "ManageStudentsDialog",
extends: MobileFullscreenDialog,
components: {
ExtraMarkChip,
AbsenceReasonChip,
AbsenceReasonGroupSelect,
AbsenceReasonButtons,
......@@ -146,8 +148,21 @@ export default {
<v-list-item-title>
{{ item.person.fullName }}
</v-list-item-title>
<v-list-item-subtitle v-if="item.absenceReason">
<absence-reason-chip small :absence-reason="item.absenceReason" />
<v-list-item-subtitle
v-if="item.absenceReason || item.notesWithExtraMark?.length > 0"
>
<absence-reason-chip
small
:absence-reason="item.absenceReason"
class="mr-1"
/>
<extra-mark-chip
v-for="note in item.notesWithExtraMark"
:key="'extra-mark-note-overview-' + note.id"
:extra-mark="extraMarks.find((e) => e.id === note.extraMark.id)"
small
class="mr-1"
/>
</v-list-item-subtitle>
</template>
......
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