Skip to content
Snippets Groups Projects
Commit 7bc6af0f authored by Julian's avatar Julian
Browse files

Use v-model with personal notes

parent df75ee31
No related branches found
No related tags found
No related merge requests found
......@@ -95,9 +95,11 @@ export default {
<v-col sm="12" md="4" lg="3">
<personal-notes
:groups="groups"
:personal-notes="personalNotes"
:excuse-types="excuseTypes"
:extra-marks="extraMarks"
v-model="personalNotes"
@change="$emit('change-personal-notes', $event)"
></personal-notes>
</v-col>
</v-row>
......
const ID_NO_PERSON = null;
export default {
model: {
prop: "personalNotes",
event: "change",
},
created() {
this.ID_NO_PERSON = ID_NO_PERSON;
},
......@@ -19,7 +23,7 @@ export default {
item.extra_marks = [];
}
});
this.$emit('change', this.personalNotes)
},
editPersonalNote(personID) {
console.log("editing personal note of person", personID);
......@@ -82,6 +86,7 @@ export default {
}
});
}
this.$emit('change', this.personalNotes)
},
cancelDialog() {
this.dialog = false;
......
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