diff --git a/drb-frontend/components/CallRow.tsx b/drb-frontend/components/CallRow.tsx index 3a38dc6..c0bad11 100644 --- a/drb-frontend/components/CallRow.tsx +++ b/drb-frontend/components/CallRow.tsx @@ -32,7 +32,7 @@ export function CallRow({ call, systemName, isAdmin }: Props) { const [saving, setSaving] = useState(false); const [saveError, setSaveError] = useState(null); const isActive = call.status === "active"; - const hasDetails = call.transcript || call.transcript_corrected || (call.tags && call.tags.length > 0) || call.incident_id; + const hasDetails = call.transcript || call.transcript_corrected || (call.tags && call.tags.length > 0) || call.incident_id || call.audio_url; const displayTranscript = (!showOriginal && call.transcript_corrected) ? call.transcript_corrected : call.transcript; const hasBoth = !!(call.transcript && call.transcript_corrected); const hasSegments = call.segments && call.segments.length > 1; @@ -82,19 +82,11 @@ export function CallRow({ call, systemName, isAdmin }: Props) { {duration(call.started_at, call.ended_at)} )} - + {call.audio_url ? ( - e.stopPropagation()} - className="text-blue-400 hover:text-blue-300 text-xs" - > - audio - + ) : ( - + )} @@ -105,6 +97,16 @@ export function CallRow({ call, systemName, isAdmin }: Props) { {expanded && hasDetails && ( + {/* Audio player */} + {call.audio_url && ( +