mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +00:00
chore: fix status color for redirects on audit page (#6096)
This commit is contained in:
@ -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"
|
||||
}
|
||||
|
Reference in New Issue
Block a user