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