feat(logs): expose stream status to log owners (#6558)

This commit is contained in:
Seefs
2026-07-31 13:29:07 +08:00
committed by GitHub
parent 0f9f668c60
commit 84834eee85
2 changed files with 38 additions and 40 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ func formatUserLogs(logs []*Log, startIdx int) {
// Remove operation-audit details (operator/route info), admin-only. // Remove operation-audit details (operator/route info), admin-only.
delete(otherMap, "audit_info") delete(otherMap, "audit_info")
// delete(otherMap, "reject_reason") // delete(otherMap, "reject_reason")
delete(otherMap, "stream_status") // delete(otherMap, "stream_status")
} }
logs[i].Other = common.MapToJsonStr(otherMap) logs[i].Other = common.MapToJsonStr(otherMap)
} }
@@ -1107,10 +1107,8 @@ export function DetailsDialog(props: DetailsDialogProps) {
/> />
)} )}
{/* Stream status details (admin only) */} {/* Stream status details */}
{props.isAdmin && {other?.stream_status && other.stream_status.status !== 'ok' && (
other?.stream_status &&
other.stream_status.status !== 'ok' && (
<DetailSection label={t('Stream Status')}> <DetailSection label={t('Stream Status')}>
<DetailRow <DetailRow
label={t('Status')} label={t('Status')}