mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +00:00
nit(web): Change how no jobs is represented in connections & repos tables
This commit is contained in:
parent
0d738a27b6
commit
b40b204408
2 changed files with 2 additions and 4 deletions
|
|
@ -64,14 +64,13 @@ const statusBadgeVariants = cva("", {
|
|||
IN_PROGRESS: "bg-primary text-primary-foreground hover:bg-primary/90",
|
||||
COMPLETED: "bg-green-600 text-white hover:bg-green-700",
|
||||
FAILED: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
||||
NO_JOBS: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
const getStatusBadge = (status: Repo["latestJobStatus"]) => {
|
||||
if (!status) {
|
||||
return <Badge className={statusBadgeVariants({ status: "NO_JOBS" })}>No Jobs</Badge>
|
||||
return "-";
|
||||
}
|
||||
|
||||
const labels = {
|
||||
|
|
|
|||
|
|
@ -47,14 +47,13 @@ const statusBadgeVariants = cva("", {
|
|||
IN_PROGRESS: "bg-primary text-primary-foreground hover:bg-primary/90",
|
||||
COMPLETED: "bg-green-600 text-white hover:bg-green-700",
|
||||
FAILED: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
||||
NO_JOBS: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
const getStatusBadge = (status: Connection["latestJobStatus"]) => {
|
||||
if (!status) {
|
||||
return <Badge className={statusBadgeVariants({ status: "NO_JOBS" })}>No Jobs</Badge>
|
||||
return "-";
|
||||
}
|
||||
|
||||
const labels = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue