Skip to content

Commit

Permalink
WIP audit trail tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
RalkeyOfficial committed Oct 23, 2024
1 parent 44e6592 commit 27ea279
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/views/taken/TaakDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,43 @@ import { navigationStore, taakStore } from '../../store/store.js'
<span>{{ taakStore.taakItem.onderwerp }}</span>
</div>
</div>

<div class="tabContainer">
<BTabs content-class="mt-3" justified>
<BTab title="Audit trail" active>
<div v-if="auditTrails.length">
<NcListItem v-for="(auditTrail, key) in auditTrails"
:key="key"
:name="new Date(auditTrail.created).toLocaleString()"
:bold="false"
:details="auditTrail.action"
:counter-number="Object.keys(auditTrail.changed).length"
:force-display-actions="true">
<template #icon>
<TimelineQuestionOutline disable-menu
:size="44" />
</template>
<template #subname>
{{ auditTrail.userName }}
</template>
<template #actions>
<NcActionButton @click="objectStore.setAuditTrailItem(auditTrail); navigationStore.setModal('viewObjectAuditTrail')">
<template #icon>
<Eye :size="20" />
</template>
View details
</NcActionButton>
</template>
</NcListItem>
</div>
<NcEmptyContent v-else icon="icon-history" title="Geen audit trail gevonden">
<template #description>
Er is geen audit trail gevonden voor deze klant.
</template>
</NcEmptyContent>
</BTab>
</BTabs>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 27ea279

Please sign in to comment.