diff --git a/src/modals/Modals.vue b/src/modals/Modals.vue
index c2093d8..bd37f4e 100644
--- a/src/modals/Modals.vue
+++ b/src/modals/Modals.vue
@@ -8,9 +8,13 @@ import { navigationStore } from '../store/store.js'
+
+
+
+
@@ -18,9 +22,13 @@ import { navigationStore } from '../store/store.js'
import ZaakForm from './zaken/ZaakForm.vue'
import EditZaakType from './zaakTypen/EditZaakType.vue'
import EditKlant from './klanten/EditKlant.vue'
+import ViewKlantAuditTrail from './klanten/ViewKlantAuditTrail.vue'
import EditBericht from './berichten/EditBericht.vue'
+import ViewBerichtAuditTrail from './berichten/ViewBerichtAuditTrail.vue'
import EditTaak from './taken/EditTaak.vue'
+import ViewTaakAuditTrail from './taken/ViewTaakAuditTrail.vue'
import EditRol from './rollen/EditRol.vue'
+import ViewZaakAuditTrail from './zaken/ViewZaakAuditTrail.vue'
export default {
name: 'Modals',
@@ -28,9 +36,13 @@ export default {
ZaakForm,
EditZaakType,
EditKlant,
+ ViewKlantAuditTrail,
EditBericht,
+ ViewBerichtAuditTrail,
EditTaak,
+ ViewTaakAuditTrail,
EditRol,
+ ViewZaakAuditTrail,
},
}
diff --git a/src/modals/berichten/ViewBerichtAuditTrail.vue b/src/modals/berichten/ViewBerichtAuditTrail.vue
new file mode 100644
index 0000000..cb118ed
--- /dev/null
+++ b/src/modals/berichten/ViewBerichtAuditTrail.vue
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
Audit Trail ID: {{ auditTrail.id }}
+
+
Action: {{ auditTrail.action }}
+
User: {{ auditTrail.userName }} ({{ auditTrail.user }})
+
Session: {{ auditTrail.session }}
+
IP Address: {{ auditTrail.ipAddress }}
+
Created: {{ new Date(auditTrail.created).toLocaleString() }}
+
+
+
Changes:
+
+ -
+ {{ key }}:
+ Old: {{ change.old ?? 'N/A' }}
+ New: {{ change.new ?? 'N/A' }}
+
+
+
+
+
+
+
+
+
+ Close
+
+
+
+
+
+
+
+
diff --git a/src/modals/klanten/ViewKlantAuditTrail.vue b/src/modals/klanten/ViewKlantAuditTrail.vue
new file mode 100644
index 0000000..f76ab55
--- /dev/null
+++ b/src/modals/klanten/ViewKlantAuditTrail.vue
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
Audit Trail ID: {{ auditTrail.id }}
+
+
Action: {{ auditTrail.action }}
+
User: {{ auditTrail.userName }} ({{ auditTrail.user }})
+
Session: {{ auditTrail.session }}
+
IP Address: {{ auditTrail.ipAddress }}
+
Created: {{ new Date(auditTrail.created).toLocaleString() }}
+
+
+
Changes:
+
+ -
+ {{ key }}:
+ Old: {{ change.old ?? 'N/A' }}
+ New: {{ change.new ?? 'N/A' }}
+
+
+
+
+
+
+
+
+
+ Close
+
+
+
+
+
+
+
+
diff --git a/src/modals/taken/ViewTaakAuditTrail.vue b/src/modals/taken/ViewTaakAuditTrail.vue
new file mode 100644
index 0000000..f0565b7
--- /dev/null
+++ b/src/modals/taken/ViewTaakAuditTrail.vue
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
Audit Trail ID: {{ auditTrail.id }}
+
+
Action: {{ auditTrail.action }}
+
User: {{ auditTrail.userName }} ({{ auditTrail.user }})
+
Session: {{ auditTrail.session }}
+
IP Address: {{ auditTrail.ipAddress }}
+
Created: {{ new Date(auditTrail.created).toLocaleString() }}
+
+
+
Changes:
+
+ -
+ {{ key }}:
+ Old: {{ change.old ?? 'N/A' }}
+ New: {{ change.new ?? 'N/A' }}
+
+
+
+
+
+
+
+
+
+ Close
+
+
+
+
+
+
+
+
diff --git a/src/modals/zaken/ViewZaakAuditTrail.vue b/src/modals/zaken/ViewZaakAuditTrail.vue
new file mode 100644
index 0000000..b809900
--- /dev/null
+++ b/src/modals/zaken/ViewZaakAuditTrail.vue
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
Audit Trail ID: {{ auditTrail.id }}
+
+
Action: {{ auditTrail.action }}
+
User: {{ auditTrail.userName }} ({{ auditTrail.user }})
+
Session: {{ auditTrail.session }}
+
IP Address: {{ auditTrail.ipAddress }}
+
Created: {{ new Date(auditTrail.created).toLocaleString() }}
+
+
+
Changes:
+
+ -
+ {{ key }}:
+ Old: {{ change.old ?? 'N/A' }}
+ New: {{ change.new ?? 'N/A' }}
+
+
+
+
+
+
+
+
+
+ Close
+
+
+
+
+
+
+
+
diff --git a/src/store/modules/berichten.js b/src/store/modules/berichten.js
index dd339d0..286cd24 100644
--- a/src/store/modules/berichten.js
+++ b/src/store/modules/berichten.js
@@ -8,6 +8,7 @@ export const useBerichtStore = defineStore('berichten', {
state: () => ({
berichtItem: false,
berichtenList: [],
+ auditTrailItem: null,
}),
actions: {
setBerichtItem(berichtItem) {
@@ -20,6 +21,9 @@ export const useBerichtStore = defineStore('berichten', {
)
console.log('Berichten list set to ' + berichtenList.length + ' items')
},
+ setAuditTrailItem(auditTrailItem) {
+ this.auditTrailItem = auditTrailItem
+ },
/* istanbul ignore next */ // ignore this for Jest until moved into a service
async refreshBerichtenList(search = null) {
let endpoint = apiEndpoint
diff --git a/src/store/modules/klanten.js b/src/store/modules/klanten.js
index e0f7ed7..674a22a 100644
--- a/src/store/modules/klanten.js
+++ b/src/store/modules/klanten.js
@@ -8,6 +8,7 @@ export const useKlantStore = defineStore('klanten', {
state: () => ({
klantItem: false,
klantenList: [],
+ auditTrailItem: null,
}),
actions: {
setKlantItem(klantItem) {
@@ -20,6 +21,9 @@ export const useKlantStore = defineStore('klanten', {
)
console.log('Klanten list set to ' + klantenList.length + ' items')
},
+ setAuditTrailItem(auditTrailItem) {
+ this.auditTrailItem = auditTrailItem
+ },
/* istanbul ignore next */ // ignore this for Jest until moved into a service
async refreshKlantenList(search = null) {
let endpoint = apiEndpoint
diff --git a/src/store/modules/taak.js b/src/store/modules/taak.js
index 2119315..2a253c1 100644
--- a/src/store/modules/taak.js
+++ b/src/store/modules/taak.js
@@ -9,6 +9,7 @@ export const useTaakStore = defineStore('taken', {
taakItem: false,
takenList: [],
taakZaakId: null,
+ auditTrailItem: null,
}),
actions: {
setTaakItem(taakItem) {
@@ -25,6 +26,9 @@ export const useTaakStore = defineStore('taken', {
this.taakZaakId = taakZaakId
console.log('Active taak Zaak Id set to ' + taakZaakId)
},
+ setAuditTrailItem(auditTrailItem) {
+ this.auditTrailItem = auditTrailItem
+ },
/* istanbul ignore next */ // ignore this for Jest until moved into a service
async refreshTakenList(search = null) {
let endpoint = apiEndpoint
diff --git a/src/store/modules/zaken.ts b/src/store/modules/zaken.ts
index 95e3abc..d9937f6 100644
--- a/src/store/modules/zaken.ts
+++ b/src/store/modules/zaken.ts
@@ -14,6 +14,7 @@ export const useZaakStore = defineStore('zaken', {
state: () => ({
zaakItem: null,
zakenList: [],
+ auditTrailItem: null,
}),
actions: {
setZaakItem(zaakItem: Zaak | TZaak) {
@@ -26,6 +27,9 @@ export const useZaakStore = defineStore('zaken', {
)
console.info('Zaken list set to ' + zakenList.length + ' items')
},
+ setAuditTrailItem(auditTrailItem: unknown) {
+ this.auditTrailItem = auditTrailItem
+ },
/**
* Refresh the list of zaken items.
*
diff --git a/src/views/berichten/BerichtDetails.vue b/src/views/berichten/BerichtDetails.vue
index 284ae86..3f86dcd 100644
--- a/src/views/berichten/BerichtDetails.vue
+++ b/src/views/berichten/BerichtDetails.vue
@@ -76,6 +76,43 @@ import { navigationStore, berichtStore } from '../../store/store.js'
{{ berichtStore.berichtItem.volgorde }}
+
+
+
+
+
+
+
+
+
+
+ {{ auditTrail.userName }}
+
+
+
+
+
+
+ View details
+
+
+
+
+
+
+ Er is geen audit trail gevonden voor deze bericht.
+
+
+
+
+
@@ -83,12 +120,15 @@ import { navigationStore, berichtStore } from '../../store/store.js'
diff --git a/src/views/klanten/KlantDetails.vue b/src/views/klanten/KlantDetails.vue
index 30bc654..e74626a 100644
--- a/src/views/klanten/KlantDetails.vue
+++ b/src/views/klanten/KlantDetails.vue
@@ -232,7 +232,7 @@ import { navigationStore, klantStore, taakStore, berichtStore, zaakStore } from
{{ auditTrail.userName }}
-
+
diff --git a/src/views/taken/TaakDetails.vue b/src/views/taken/TaakDetails.vue
index e34e778..fcc659c 100644
--- a/src/views/taken/TaakDetails.vue
+++ b/src/views/taken/TaakDetails.vue
@@ -35,6 +35,43 @@ import { navigationStore, taakStore } from '../../store/store.js'
{{ taakStore.taakItem.onderwerp }}
+
+
+
+
+
+
+
+
+
+
+ {{ auditTrail.userName }}
+
+
+
+
+
+
+ View details
+
+
+
+
+
+
+ Er is geen audit trail gevonden voor deze taak.
+
+
+
+
+
@@ -42,12 +79,15 @@ import { navigationStore, taakStore } from '../../store/store.js'
diff --git a/src/views/zaken/ZaakDetails.vue b/src/views/zaken/ZaakDetails.vue
index 99511be..b27f1b0 100644
--- a/src/views/zaken/ZaakDetails.vue
+++ b/src/views/zaken/ZaakDetails.vue
@@ -134,6 +134,38 @@ import { navigationStore, zaakStore } from '../../store/store.js'
Todo: Koppelings info met DSO
-->
+
+
+
+
+
+
+
+ {{ auditTrail.userName }}
+
+
+
+
+
+
+ View details
+
+
+
+
+
+
+ Er is geen audit trail gevonden voor deze zaak.
+
+
+
@@ -148,7 +180,7 @@ import { navigationStore, zaakStore } from '../../store/store.js'