Skip to content
Snippets Groups Projects
Commit 1624600b authored by Julian's avatar Julian
Browse files

Reformat

parent 051e15b8
No related branches found
No related tags found
1 merge request!362Resolve "Add personal note management dialog in course book"
......@@ -4,7 +4,12 @@
<mobile-fullscreen-dialog v-model="popup" max-width="500px">
<template #activator="activator">
<!-- list view -> activate dialog -->
<documentation compact v-bind="$attrs" :dialog-activator="activator" :extra-marks="extraMarks" />
<documentation
compact
v-bind="$attrs"
:dialog-activator="activator"
:extra-marks="extraMarks"
/>
</template>
<!-- dialog view -> deactivate dialog -->
<!-- cancel | save (through lesson-summary) -->
......
......@@ -37,7 +37,9 @@ import ExtraMarkChip from "../../extra_marks/ExtraMarkChip.vue";
</absence-reason-chip>
<extra-mark-chip
v-for="[markId, [mark, ...participations]] in Object.entries(extraMarkChips)"
v-for="[markId, [mark, ...participations]] in Object.entries(
extraMarkChips,
)"
:key="'extra-mark-' + markId"
:extra-mark="mark"
dense
......@@ -99,7 +101,10 @@ export default {
if (value[extraMark.id]) {
value[extraMark.id].push(p);
} else {
value[extraMark.id] = [this.extraMarks.find(e => e.id === extraMark.id), p];
value[extraMark.id] = [
this.extraMarks.find((e) => e.id === extraMark.id),
p,
];
}
}
});
......
......@@ -71,7 +71,8 @@ export default {
(part) => part.id === this.participation.id,
);
switch (mode.toLowerCase()) {
case "update": case "delete": {
case "update":
case "delete": {
const updateIndex = participationStatus.notesWithNote.findIndex(
(n) => n.id === this.value.id,
);
......
......@@ -23,9 +23,7 @@ export default {
extends: CounterChip,
computed: {
text() {
return this.short
? this.extraMark.shortName
: this.extraMark.name;
return this.short ? this.extraMark.shortName : this.extraMark.name;
},
},
};
......
......@@ -19,8 +19,6 @@ from .documentation import (
DocumentationType,
LessonsForPersonType,
TouchDocumentationMutation,
LessonsForPersonType,
TouchDocumentationMutation,
)
from .extra_marks import (
ExtraMarkBatchCreateMutation,
......@@ -34,7 +32,6 @@ from .personal_note import (
PersonalNoteBatchDeleteMutation,
PersonalNoteBatchPatchMutation,
)
from .participation_status import ParticipationStatusBatchPatchMutation
class Query(graphene.ObjectType):
......
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