diff --git a/src/modals/zaken/AddBerichtToZaak.vue b/src/modals/zaken/AddBerichtToZaak.vue index d9e7f85..fffed4a 100644 --- a/src/modals/zaken/AddBerichtToZaak.vue +++ b/src/modals/zaken/AddBerichtToZaak.vue @@ -84,10 +84,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) => { @@ -101,7 +103,7 @@ export default { this.loading = true this.error = false - const zaakItemCopy = _.cloneDeep(this.zaakItem) + const zaakItemCopy = _.cloneDeep(zaakStore.zaakItem) if (zaakItemCopy.berichten) { zaakItemCopy.berichten.push(this.berichten.value.id) 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 8a3687a..50fc0c0 100644 --- a/src/views/zaken/ZaakDetails.vue +++ b/src/views/zaken/ZaakDetails.vue @@ -170,17 +170,13 @@ import { navigationStore, zaakStore } from '../../store/store.js' -