Skip to content

Commit 87c5d4f

Browse files
committed
Show audit log action when no actor
1 parent ce28453 commit 87c5d4f

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/lib/AuditLogLine.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
message: string;
77
createdAt: Date;
88
actor: string | null;
9+
action: string;
910
};
1011
</script>
1112

@@ -15,7 +16,7 @@
1516
</p>
1617
<BodyShort size="small" style="color: var(--a-text-subtle)">
1718
<Time time={log.createdAt} dateFormat="dd. MMM yyyy HH:mm:ss" /> -
18-
{log.actor || 'Unknown'}
19+
{log.actor || log.action}
1920
</BodyShort>
2021
</div>
2122

src/routes/admin/SyncRuns.svelte

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
auditLogs(limit: 15) {
1818
nodes {
1919
actor
20+
action
2021
message
2122
createdAt
2223
}

src/routes/team/[team]/(teamTabs)/settings/+page.gql

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ query TeamSettings($team: Slug!) {
1616
auditLogs(limit: 5) @loading {
1717
nodes @loading(count: 5) {
1818
actor
19+
action
1920
message
2021
createdAt
2122
}

src/routes/team/[team]/(teamTabs)/settings/audit_logs/+page.gql

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ query TeamAuditLogs($team: Slug!, $limit: Int, $offset: Int) {
33
auditLogs(limit: $limit, offset: $offset) @loading {
44
nodes @loading(count: 15) {
55
actor
6+
action
67
message
78
createdAt
89
}

0 commit comments

Comments
 (0)