diff --git a/src/modals/objectAuditTrail/ViewObjectAuditTrail.vue b/src/modals/objectAuditTrail/ViewObjectAuditTrail.vue
index 229a393..6bc0814 100644
--- a/src/modals/objectAuditTrail/ViewObjectAuditTrail.vue
+++ b/src/modals/objectAuditTrail/ViewObjectAuditTrail.vue
@@ -19,22 +19,22 @@ import { objectStore, navigationStore } from '../../store/store.js'
Changes:
-
- {{ key }}:
- Old: {{ change.old }}
- New: {{ change.new }}
+ {{ key }}:
+ Old: {{ change.old ?? 'N/A' }}
+ New: {{ change.new ?? 'N/A' }}
-
- Go to Schema {{ auditTrail.schema }}
+
+ Go to linked Schema
-
- Go to Register {{ auditTrail.register }}
+
+ Go to linked Register
-
- Go to Object {{ auditTrail.object }}
+
+ Go to linked Object
@@ -89,10 +89,14 @@ export default {
.audit-item {
border-bottom: 1px solid #ccc;
- padding: 10px 0;
+ padding: 0 0 10px 0;
+ margin: 0 0 10px 0;
}
.navigation-buttons {
margin-top: 10px;
+ display: flex;
+ gap: 10px;
+ justify-content: center;
}
diff --git a/src/store/modules/object.js b/src/store/modules/object.js
index 20fbff0..8e969f8 100644
--- a/src/store/modules/object.js
+++ b/src/store/modules/object.js
@@ -62,6 +62,8 @@ export const useObjectStore = defineStore('object', {
})
const data = await response.json()
this.setObjectItem(data)
+ this.getAuditTrails(data.id)
+
return data
} catch (err) {
console.error(err)
@@ -138,6 +140,7 @@ export const useObjectStore = defineStore('object', {
this.refreshObjectList()
this.setObjectItem(data)
+ this.getAuditTrails(data.id)
return { response, data }
},
diff --git a/src/views/object/ObjectDetails.vue b/src/views/object/ObjectDetails.vue
index 98083f7..c072b79 100644
--- a/src/views/object/ObjectDetails.vue
+++ b/src/views/object/ObjectDetails.vue
@@ -62,8 +62,8 @@ import { objectStore, navigationStore } from '../../store/store.js'
-
-
+
-