Skip to content
Snippets Groups Projects
Commit 9d7d68a2 authored by Julian's avatar Julian
Browse files

Allow correctly deleting personal notes

parent 91fa09e9
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,21 @@ export default {
this.ID_NO_PERSON = ID_NO_PERSON;
},
methods: {
removePersonalNote(item) {
console.log("removing personal note", item);
removePersonalNote(personID) {
if (personID === ID_NO_PERSON) {
return
}
console.log("removing personal note of person", personID);
this.personalNotes.forEach(item => {
if (item.student.id === personID) {
item.tardiness = 0;
item.absent = false;
item.excused = false;
item.excuse_type = null;
item.extra_marks = [];
}
});
},
editPersonalNote(personID) {
console.log("editing personal note of person", personID);
......
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