From cb131a8f672705c8798ad72fbdd31f40703ddccf Mon Sep 17 00:00:00 2001 From: Thijn Date: Thu, 5 Dec 2024 16:27:28 +0100 Subject: [PATCH 1/3] added quick fix to avoid duplicate submissions --- src/modals/zaken/AddBerichtToZaak.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modals/zaken/AddBerichtToZaak.vue b/src/modals/zaken/AddBerichtToZaak.vue index d9e7f85..3d27abf 100644 --- a/src/modals/zaken/AddBerichtToZaak.vue +++ b/src/modals/zaken/AddBerichtToZaak.vue @@ -71,7 +71,6 @@ export default { } }, mounted() { - this.zaakItem = zaakStore.zaakItem this.fetchBerichtenData() }, methods: { @@ -84,10 +83,12 @@ export default { berichtStore.refreshBerichtenList() .then(({ data }) => { this.berichten = { - options: data.map((bericht) => ({ - id: bericht.id, - label: bericht.title, - })), + options: data + .filter((bericht) => !zaakStore.zaakItem.berichten.includes(bericht.id)) + .map((bericht) => ({ + id: bericht.id, + label: bericht.title, + })), } }) .catch((err) => { From 87586d88838e6bc5f5bfa78a77cffd0e254e0a72 Mon Sep 17 00:00:00 2001 From: Remko Date: Fri, 6 Dec 2024 15:01:47 +0100 Subject: [PATCH 2/3] cleanup --- src/views/eigenschappen/ZaakEigenschappen.vue | 2 +- src/views/zaken/ZaakDetails.vue | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/views/eigenschappen/ZaakEigenschappen.vue b/src/views/eigenschappen/ZaakEigenschappen.vue index 6c6d7af..0cc5b12 100644 --- a/src/views/eigenschappen/ZaakEigenschappen.vue +++ b/src/views/eigenschappen/ZaakEigenschappen.vue @@ -67,7 +67,7 @@ export default { data() { return { search: '', - loading: true, + loading: false, zakenList: [], } }, diff --git a/src/views/zaken/ZaakDetails.vue b/src/views/zaken/ZaakDetails.vue index deb3278..8a3862f 100644 --- a/src/views/zaken/ZaakDetails.vue +++ b/src/views/zaken/ZaakDetails.vue @@ -170,17 +170,13 @@ import { navigationStore, zaakStore } from '../../store/store.js' -