Skip to content
Snippets Groups Projects
Verified Commit c06aa61b authored by Julian's avatar Julian Committed by magicfelix
Browse files

Allow correctly deleting personal notes

parent 11010ba8
No related branches found
No related tags found
1 merge request!284Draft: Redesign entering of lesson documentation
......@@ -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