mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-03 14:03:40 +01:00
Add docker healthy translation
This commit is contained in:
parent
07b896832b
commit
606bcdc835
@ -64,6 +64,7 @@
|
|||||||
"offline": "Offline",
|
"offline": "Offline",
|
||||||
"error": "Error",
|
"error": "Error",
|
||||||
"unknown": "Unknown",
|
"unknown": "Unknown",
|
||||||
|
"healthy": "Healthy",
|
||||||
"starting": "Starting",
|
"starting": "Starting",
|
||||||
"unhealthy": "Unhealthy",
|
"unhealthy": "Unhealthy",
|
||||||
"not_found": "Not Found",
|
"not_found": "Not Found",
|
||||||
|
@ -33,11 +33,13 @@ export default function Status({ service }) {
|
|||||||
|
|
||||||
if (!data.health) {
|
if (!data.health) {
|
||||||
statusLabel = data.status.replace("running", t("docker.running"))
|
statusLabel = data.status.replace("running", t("docker.running"))
|
||||||
|
} else {
|
||||||
|
statusLabel = data.health === "healthy" ? t("docker.healthy") : data.health
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-auto px-1.5 py-0.5 text-center bg-theme-500/10 dark:bg-theme-900/50 rounded-b-[3px] overflow-hidden" title={data.health || statusLabel}>
|
<div className="w-auto px-1.5 py-0.5 text-center bg-theme-500/10 dark:bg-theme-900/50 rounded-b-[3px] overflow-hidden" title={statusLabel}>
|
||||||
<div className="text-[8px] font-bold text-emerald-500/80 uppercase">{data.health || statusLabel}</div>
|
<div className="text-[8px] font-bold text-emerald-500/80 uppercase">{statusLabel}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user