From c3ada54022eb25cbff348e57302cc579b54e893f Mon Sep 17 00:00:00 2001 From: John Rassa Date: Mon, 9 Dec 2024 13:00:06 -0500 Subject: [PATCH] fix(audit): Hide `View Details` button when there are no details to show --- .../list-audit-entries.component.html | 36 +++++++++---------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/src/app/core/audit/list-audit-entries/list-audit-entries.component.html b/src/app/core/audit/list-audit-entries/list-audit-entries.component.html index 41ade13f..68408f57 100644 --- a/src/app/core/audit/list-audit-entries/list-audit-entries.component.html +++ b/src/app/core/audit/list-audit-entries/list-audit-entries.component.html @@ -69,13 +69,13 @@

Audit Logs

Object - @if (entry.audit.object?.after) { - {{ entry.audit.object.after | json }} - } @else { - {{ entry.audit.object | json }} -
+ @if (entry.audit.object) { + @if (entry.audit.object?.after) { + {{ entry.audit.object.after | json }} + } @else { + {{ entry.audit.object | json }} -
+ } }
@@ -98,18 +98,16 @@

Audit Logs

@if (entry.audit.object?.before) { {{ entry.audit.object?.before | json }} -
- -
+ }