From b7172fe0fb34473ce21dc1997368c32732004d70 Mon Sep 17 00:00:00 2001 From: Kira Pilot Date: Tue, 7 Feb 2023 23:05:32 +0000 Subject: [PATCH] chore: fix status color for redirects on audit page --- 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 4813932a17351..0a7591f64e36b 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" }