diff --git a/src/entities/contactmoment/contactmoment.mock.ts b/src/entities/contactmoment/contactmoment.mock.ts index f2fa3ff..563b9ea 100644 --- a/src/entities/contactmoment/contactmoment.mock.ts +++ b/src/entities/contactmoment/contactmoment.mock.ts @@ -5,7 +5,6 @@ export const mockContactMomentData = (): TContactMoment[] => [ { id: '15551d6f-44e3-43f3-a9d2-59e583c91eb0', uuid: '15551d6f-44e3-43f3-a9d2-59e583c91eb0', - titel: 'Zaak 3', notitie: 'Zaak 3', klant: 'Klant 3', zaak: 'Zaak 3', diff --git a/src/entities/contactmoment/contactmoment.ts b/src/entities/contactmoment/contactmoment.ts index 30d5d1c..14aa482 100644 --- a/src/entities/contactmoment/contactmoment.ts +++ b/src/entities/contactmoment/contactmoment.ts @@ -5,7 +5,6 @@ export class ContactMoment implements TContactMoment { public id: string public uuid: string - public titel: string public notitie: string public klant: string public zaak: string @@ -17,7 +16,6 @@ export class ContactMoment implements TContactMoment { constructor(source: TContactMoment) { this.id = source.id || '' this.uuid = source.uuid || '' - this.titel = source.titel || '' this.notitie = source.notitie || '' this.klant = source.klant || '' this.zaak = source.zaak || '' @@ -31,7 +29,6 @@ export class ContactMoment implements TContactMoment { const schema = z.object({ id: z.string().optional(), uuid: z.string().optional(), - titel: z.string().min(1), notitie: z.string().min(1), klant: z.string().min(1), zaak: z.string().min(1), diff --git a/src/entities/contactmoment/contactmoment.types.ts b/src/entities/contactmoment/contactmoment.types.ts index 4c7e790..89d817e 100644 --- a/src/entities/contactmoment/contactmoment.types.ts +++ b/src/entities/contactmoment/contactmoment.types.ts @@ -1,7 +1,6 @@ export type TContactMoment = { id: string; uuid: string; - titel: string; notitie: string; klant: string; zaak: string; diff --git a/src/modals/contactMomenten/ContactMomentenForm.vue b/src/modals/contactMomenten/ContactMomentenForm.vue index 0db7624..497d767 100644 --- a/src/modals/contactMomenten/ContactMomentenForm.vue +++ b/src/modals/contactMomenten/ContactMomentenForm.vue @@ -65,7 +65,7 @@ import { navigationStore, taakStore, zaakStore } from '../../store/store.js' -
+
-
@@ -184,7 +180,10 @@ import { navigationStore, taakStore, zaakStore } from '../../store/store.js' Annuleer - + @@ -202,6 +201,7 @@ import { navigationStore, taakStore, zaakStore } from '../../store/store.js' // Components import { BTabs, BTab } from 'bootstrap-vue' -import { NcButton, NcActions, NcLoadingIcon, NcDialog, NcTextArea, NcNoteCard, NcListItem, NcActionButton, NcEmptyContent, NcTextField } from '@nextcloud/vue' +import { NcButton, NcActions, NcLoadingIcon, NcDialog, NcTextArea, NcNoteCard, NcListItem, NcActionButton, NcEmptyContent } from '@nextcloud/vue' // Forms import SearchKlantModal from '../../modals/klanten/SearchKlantModal.vue' @@ -249,7 +249,6 @@ export default { NcListItem, NcActionButton, NcEmptyContent, - NcTextField, // Icons Plus, BriefcaseAccountOutline, @@ -304,6 +303,7 @@ export default { }, closeModal() { navigationStore.setModal(false) + this.$emit('close-modal') }, @@ -319,7 +319,6 @@ export default { 'Content-Type': 'application/json', }, body: JSON.stringify({ - titel: this.titel, notitie: this.notitie, klant: this.klant?.id ?? '', zaak: this.selectedZaak ?? '', @@ -370,7 +369,6 @@ export default { fetch(`/index.php/apps/zaakafhandelapp/api/contactmomenten/${id}`) .then(response => response.json()) .then(data => { - this.titel = data.titel this.notitie = data.notitie this.status = data.status this.startDate = data.startDate diff --git a/src/modals/taken/EditTaak.vue b/src/modals/taken/EditTaak.vue index e561a53..4ea62c1 100644 --- a/src/modals/taken/EditTaak.vue +++ b/src/modals/taken/EditTaak.vue @@ -28,13 +28,6 @@ import { taakStore, navigationStore, klantStore } from '../../store/store.js' label="Type" maxlength="255" /> - -

Deadline

response.json()) .then(data => { - this.taakItem = data + this.taakItem = { + ...data, + deadline: new Date(data.deadline), + } + this.fetchMedewerkers() }) }, diff --git a/src/views/contactMomenten/ContactMomentenList.vue b/src/views/contactMomenten/ContactMomentenList.vue index 9a9ea39..454d54e 100644 --- a/src/views/contactMomenten/ContactMomentenList.vue +++ b/src/views/contactMomenten/ContactMomentenList.vue @@ -1,5 +1,5 @@