From 9b46183e1201e347ab866a7f9d238e51aa34f4dc Mon Sep 17 00:00:00 2001 From: Julian Leucker <leuckerj@gmail.com> Date: Wed, 6 Jul 2022 01:09:27 +0200 Subject: [PATCH] Only display chips, if personal note has changes in it --- .../static/js/vue/components/alsijil/PersonalNotes.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/aleksis/apps/alsijil/static/js/vue/components/alsijil/PersonalNotes.js b/aleksis/apps/alsijil/static/js/vue/components/alsijil/PersonalNotes.js index 72dbad179..c18b15274 100644 --- a/aleksis/apps/alsijil/static/js/vue/components/alsijil/PersonalNotes.js +++ b/aleksis/apps/alsijil/static/js/vue/components/alsijil/PersonalNotes.js @@ -66,10 +66,12 @@ export default { > <template v-slot:activator="{ on, attrs }"> <div> - <v-chip class="ma-1" v-for="personal_note in personalNotes" close - @click="editPersonalNote(personal_note.student.id)" @click:close="removePersonalNote(personal_note)"> - {{personal_note.student.full_name}}: {{personal_note.tardiness}} - </v-chip> + <template v-for="personal_note in personalNotes"> + <v-chip class="ma-1" close @click="editPersonalNote(personal_note.student.id)" + @click:close="removePersonalNote(personal_note.student.id)" v-if="personalNoteString(personal_note)"> + {{ personal_note.student.full_name }}: {{ personalNoteString(personal_note) }} + </v-chip> + </template> </div> <v-btn class="ma-1" -- GitLab