From 3da33d23a49b8065cf53991a645806d8b2c23cc7 Mon Sep 17 00:00:00 2001 From: Kira Pilot Date: Wed, 8 Feb 2023 09:40:51 -0500 Subject: [PATCH] chore: fix status color for redirects on audit page (#6096) --- site/src/components/AuditLogRow/AuditLogRow.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/site/src/components/AuditLogRow/AuditLogRow.tsx b/site/src/components/AuditLogRow/AuditLogRow.tsx index 4813932a17..0a7591f64e 100644 --- a/site/src/components/AuditLogRow/AuditLogRow.tsx +++ b/site/src/components/AuditLogRow/AuditLogRow.tsx @@ -19,6 +19,11 @@ import { AuditLogDescription } from "./AuditLogDescription" import { determineGroupDiff } from "./auditUtils" const httpStatusColor = (httpStatus: number): PaletteIndex => { + // redirects are successful + if (httpStatus === 307) { + return "success" + } + if (httpStatus >= 300 && httpStatus < 500) { return "warning" }