Skip to content

Commit

Permalink
Merge pull request #265 from strideynet/kev-fix-profile-audit-event-u…
Browse files Browse the repository at this point in the history
…pdate

Fix audit events aren’t updated on profile
  • Loading branch information
KevSlashNull authored Oct 24, 2024
2 parents 5d0e62c + 726abce commit 31b3f56
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions web/admin/components/user/profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const props = defineProps<{
pending?: number;
variant: "profile" | "queue";
}>();
defineEmits<{
const $emit = defineEmits<{
(event: "next"): void;
}>();
Expand All @@ -32,6 +32,13 @@ async function refresh() {
await auditLog.value?.refresh();
}
function handleNext() {
$emit("next");
if (props.variant === "profile") {
refresh();
}
}
watch(
() => props.did,
() => refresh()
Expand All @@ -49,7 +56,7 @@ await refresh();
:did="subject?.did || props.did"
:pending="pending"
:variant="variant"
@next="$emit('next')"
@next="handleNext"
/>
<user-audit-log
ref="auditLog"
Expand Down

0 comments on commit 31b3f56

Please sign in to comment.