From 03e66680701c5286a178ad8fa8805a9bef5ff386 Mon Sep 17 00:00:00 2001 From: valerio Date: Sat, 25 Jan 2025 11:54:16 +0100 Subject: [PATCH] add solution --- vue-project/src/components/InputMask.vue | 7 ++++++- vue-project/src/components/List.vue | 6 +++++- vue-project/src/components/ListItem.vue | 11 ++++++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/vue-project/src/components/InputMask.vue b/vue-project/src/components/InputMask.vue index 73b0c82..bb4ef99 100644 --- a/vue-project/src/components/InputMask.vue +++ b/vue-project/src/components/InputMask.vue @@ -16,7 +16,8 @@ - + + @@ -57,6 +58,10 @@ function validateInput() { const valid_grade = grade_steps.includes(parseFloat(grade_form_input.value.note)); return valid_grade && not_empty ? true : false; } + +function deleteGrade(id) { + grades.value = grades.value.filter(e => e.id !== id) +} \ No newline at end of file