From fd0953b0071ff1106bf5da25250c4ab4c1e88c14 Mon Sep 17 00:00:00 2001 From: Teodora Pavlova <27234545+TeodoraPavlova@users.noreply.github.com> Date: Mon, 15 Apr 2024 16:09:07 +0300 Subject: [PATCH] EntityBulkAdd - composition API --- frontend/src/components/EntityBulkAdd.vue | 123 +++++++++++----------- 1 file changed, 62 insertions(+), 61 deletions(-) diff --git a/frontend/src/components/EntityBulkAdd.vue b/frontend/src/components/EntityBulkAdd.vue index 35407fa..d513191 100644 --- a/frontend/src/components/EntityBulkAdd.vue +++ b/frontend/src/components/EntityBulkAdd.vue @@ -7,7 +7,8 @@ @click="closeForm(form.props.id)"/> - +
@@ -19,73 +20,73 @@ + + +async function addEntityForm() { + entityForms.value.push(generateEntityForm(entityForms.value.length)); +} - \ No newline at end of file +function closeForm(formId) { + entityForms.value = entityForms.value.filter(e => formId !== e.props.id); +} + \ No newline at end of file