diff --git a/src/modals/Modals.vue b/src/modals/Modals.vue index 75895c0..da20130 100644 --- a/src/modals/Modals.vue +++ b/src/modals/Modals.vue @@ -14,6 +14,7 @@ import { navigationStore } from '../store/store.js' + @@ -55,6 +56,7 @@ import AddBerichtToZaak from './zaken/AddBerichtToZaak.vue' import AddTaakToZaak from './zaken/AddTaakToZaak.vue' import ContactMomentenForm from './contactMomenten/ContactMomentenForm.vue' import AddRolToZaak from './zaken/AddRolToZaak.vue' +import ViewContactMoment from './contactMomenten/ViewContactMoment.vue' export default { name: 'Modals', @@ -78,6 +80,7 @@ export default { AddTaakToZaak, ContactMomentenForm, AddRolToZaak, + ViewContactMoment, }, } diff --git a/src/modals/contactMomenten/ContactMomentenForm.vue b/src/modals/contactMomenten/ContactMomentenForm.vue index a9ce29b..cba982b 100644 --- a/src/modals/contactMomenten/ContactMomentenForm.vue +++ b/src/modals/contactMomenten/ContactMomentenForm.vue @@ -1,1039 +1,1118 @@ - - - - - - - - - + + + + + + + + + diff --git a/src/modals/contactMomenten/ViewContactMoment.vue b/src/modals/contactMomenten/ViewContactMoment.vue new file mode 100644 index 0000000..45fa866 --- /dev/null +++ b/src/modals/contactMomenten/ViewContactMoment.vue @@ -0,0 +1,1035 @@ + + + + + + + + + diff --git a/src/modals/zaken/ZaakForm.vue b/src/modals/zaken/ZaakForm.vue index 0d66c89..88ea9d3 100644 --- a/src/modals/zaken/ZaakForm.vue +++ b/src/modals/zaken/ZaakForm.vue @@ -191,7 +191,7 @@ export default { methods: { closeModal() { navigationStore.setModal(null) - this?.dashboardWidget && this.$emit('close') + this?.dashboardWidget && this.$emit('close-modal') }, fetchZaakType() { this.zaakTypeLoading = true diff --git a/src/store/modules/navigation.ts b/src/store/modules/navigation.ts index 3afe94d..79a521e 100644 --- a/src/store/modules/navigation.ts +++ b/src/store/modules/navigation.ts @@ -4,6 +4,7 @@ import { defineStore } from 'pinia' interface NavigationStoreState { selected: 'dashboard' | 'berichten' | 'klanten' | 'rollen' | 'taken' | 'zaken' | 'zaakTypen' | 'search' | 'auditTrail' | 'contactMomenten' | 'medewerkers'; modal: string; + viewModal: string; dialog: string; transferData: string; } @@ -14,6 +15,8 @@ export const useNavigationStore = defineStore('ui', { selected: 'dashboard', // The currently active modal, managed trough the state to ensure that only one modal can be active at the same time modal: null, + // The currently active view modal, managed trough the state to ensure that only one view modal can be active at the same time + viewModal: null, // The currently active dialog dialog: null, // Any data needed in various models, dialogs, views which cannot be transferred through normal means or without writing bad/excessive code @@ -28,6 +31,10 @@ export const useNavigationStore = defineStore('ui', { this.modal = modal console.log('Active modal set to ' + modal) }, + setViewModal(viewModal: NavigationStoreState['viewModal']) { + this.viewModal = viewModal + console.log('Active view modal set to ' + viewModal) + }, setDialog(dialog: NavigationStoreState['dialog']) { this.dialog = dialog console.log('Active dialog set to ' + dialog)