-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f82e5d4
commit 0813dbc
Showing
10 changed files
with
390 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<script setup> | ||
import { berichtStore, navigationStore } from '../../store/store.js' | ||
</script> | ||
|
||
<template> | ||
<NcModal label-id="View Bericht Audit Trail modal" | ||
@close="closeDialog"> | ||
<div class="modal__content"> | ||
<div class="audit-item"> | ||
<h3>Audit Trail ID: {{ auditTrail.id }}</h3> | ||
|
||
<p><strong>Action:</strong> {{ auditTrail.action }}</p> | ||
<p><strong>User:</strong> {{ auditTrail.userName }} ({{ auditTrail.user }})</p> | ||
<p><strong>Session:</strong> {{ auditTrail.session }}</p> | ||
<p><strong>IP Address:</strong> {{ auditTrail.ipAddress }}</p> | ||
<p><strong>Created:</strong> {{ new Date(auditTrail.created).toLocaleString() }}</p> | ||
|
||
<div v-if="auditTrail.changed"> | ||
<h4>Changes:</h4> | ||
<ul> | ||
<li v-for="(change, key) in auditTrail.changed" :key="key"> | ||
<strong>{{ key }}:</strong><br> | ||
<span>Old: {{ change.old ?? 'N/A' }}</span><br> | ||
<span>New: {{ change.new ?? 'N/A' }}</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<NcButton @click="closeDialog"> | ||
<template #icon> | ||
<Cancel :size="20" /> | ||
</template> | ||
Close | ||
</NcButton> | ||
</div> | ||
</NcModal> | ||
</template> | ||
|
||
<script> | ||
import { | ||
NcModal, | ||
NcButton, | ||
} from '@nextcloud/vue' | ||
import Cancel from 'vue-material-design-icons/Cancel.vue' | ||
export default { | ||
name: 'ViewBerichtAuditTrail', | ||
components: { | ||
NcModal, | ||
NcButton, | ||
Cancel, | ||
}, | ||
data() { | ||
return { | ||
auditTrail: {}, // Initialize with an empty object | ||
} | ||
}, | ||
mounted() { | ||
// Assuming berichtStore.auditTrailItem is a single audit trail object | ||
this.auditTrail = berichtStore.auditTrailItem || {} | ||
}, | ||
methods: { | ||
closeDialog() { | ||
navigationStore.setModal(null) | ||
berichtStore.setAuditTrailItem(null) | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.modal__content { | ||
margin: 0.8rem; | ||
} | ||
.audit-item { | ||
border-bottom: 1px solid #ccc; | ||
padding: 0 0 10px 0; | ||
margin: 0 0 10px 0; | ||
} | ||
.navigation-buttons { | ||
margin-top: 10px; | ||
display: flex; | ||
gap: 10px; | ||
justify-content: center; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<script setup> | ||
import { klantStore, navigationStore } from '../../store/store.js' | ||
</script> | ||
|
||
<template> | ||
<NcModal label-id="View Klant Audit Trail modal" | ||
@close="closeDialog"> | ||
<div class="modal__content"> | ||
<div class="audit-item"> | ||
<h3>Audit Trail ID: {{ auditTrail.id }}</h3> | ||
|
||
<p><strong>Action:</strong> {{ auditTrail.action }}</p> | ||
<p><strong>User:</strong> {{ auditTrail.userName }} ({{ auditTrail.user }})</p> | ||
<p><strong>Session:</strong> {{ auditTrail.session }}</p> | ||
<p><strong>IP Address:</strong> {{ auditTrail.ipAddress }}</p> | ||
<p><strong>Created:</strong> {{ new Date(auditTrail.created).toLocaleString() }}</p> | ||
|
||
<div v-if="auditTrail.changed"> | ||
<h4>Changes:</h4> | ||
<ul> | ||
<li v-for="(change, key) in auditTrail.changed" :key="key"> | ||
<strong>{{ key }}:</strong><br> | ||
<span>Old: {{ change.old ?? 'N/A' }}</span><br> | ||
<span>New: {{ change.new ?? 'N/A' }}</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<NcButton @click="closeDialog"> | ||
<template #icon> | ||
<Cancel :size="20" /> | ||
</template> | ||
Close | ||
</NcButton> | ||
</div> | ||
</NcModal> | ||
</template> | ||
|
||
<script> | ||
import { | ||
NcModal, | ||
NcButton, | ||
} from '@nextcloud/vue' | ||
import Cancel from 'vue-material-design-icons/Cancel.vue' | ||
export default { | ||
name: 'ViewKlantAuditTrail', | ||
components: { | ||
NcModal, | ||
NcButton, | ||
Cancel, | ||
}, | ||
data() { | ||
return { | ||
auditTrail: {}, // Initialize with an empty object | ||
} | ||
}, | ||
mounted() { | ||
// Assuming klantStore.auditTrailItem is a single audit trail object | ||
this.auditTrail = klantStore.auditTrailItem || {} | ||
}, | ||
methods: { | ||
closeDialog() { | ||
navigationStore.setModal(null) | ||
klantStore.setAuditTrailItem(null) | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.modal__content { | ||
margin: 0.8rem; | ||
} | ||
.audit-item { | ||
border-bottom: 1px solid #ccc; | ||
padding: 0 0 10px 0; | ||
margin: 0 0 10px 0; | ||
} | ||
.navigation-buttons { | ||
margin-top: 10px; | ||
display: flex; | ||
gap: 10px; | ||
justify-content: center; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<script setup> | ||
import { taakStore, navigationStore } from '../../store/store.js' | ||
</script> | ||
|
||
<template> | ||
<NcModal label-id="View Taak Audit Trail modal" | ||
@close="closeDialog"> | ||
<div class="modal__content"> | ||
<div class="audit-item"> | ||
<h3>Audit Trail ID: {{ auditTrail.id }}</h3> | ||
|
||
<p><strong>Action:</strong> {{ auditTrail.action }}</p> | ||
<p><strong>User:</strong> {{ auditTrail.userName }} ({{ auditTrail.user }})</p> | ||
<p><strong>Session:</strong> {{ auditTrail.session }}</p> | ||
<p><strong>IP Address:</strong> {{ auditTrail.ipAddress }}</p> | ||
<p><strong>Created:</strong> {{ new Date(auditTrail.created).toLocaleString() }}</p> | ||
|
||
<div v-if="auditTrail.changed"> | ||
<h4>Changes:</h4> | ||
<ul> | ||
<li v-for="(change, key) in auditTrail.changed" :key="key"> | ||
<strong>{{ key }}:</strong><br> | ||
<span>Old: {{ change.old ?? 'N/A' }}</span><br> | ||
<span>New: {{ change.new ?? 'N/A' }}</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<NcButton @click="closeDialog"> | ||
<template #icon> | ||
<Cancel :size="20" /> | ||
</template> | ||
Close | ||
</NcButton> | ||
</div> | ||
</NcModal> | ||
</template> | ||
|
||
<script> | ||
import { | ||
NcModal, | ||
NcButton, | ||
} from '@nextcloud/vue' | ||
import Cancel from 'vue-material-design-icons/Cancel.vue' | ||
export default { | ||
name: 'ViewTaakAuditTrail', | ||
components: { | ||
NcModal, | ||
NcButton, | ||
Cancel, | ||
}, | ||
data() { | ||
return { | ||
auditTrail: {}, // Initialize with an empty object | ||
} | ||
}, | ||
mounted() { | ||
// Assuming taakStore.auditTrailItem is a single audit trail object | ||
this.auditTrail = taakStore.auditTrailItem || {} | ||
}, | ||
methods: { | ||
closeDialog() { | ||
navigationStore.setModal(null) | ||
taakStore.setAuditTrailItem(null) | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.modal__content { | ||
margin: 0.8rem; | ||
} | ||
.audit-item { | ||
border-bottom: 1px solid #ccc; | ||
padding: 0 0 10px 0; | ||
margin: 0 0 10px 0; | ||
} | ||
.navigation-buttons { | ||
margin-top: 10px; | ||
display: flex; | ||
gap: 10px; | ||
justify-content: center; | ||
} | ||
</style> |
Oops, something went wrong.