mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 14:58:47 +00:00
Add docker healthy translation
This commit is contained in:
parent
07b896832b
commit
606bcdc835
2 changed files with 5 additions and 2 deletions
|
@ -33,11 +33,13 @@ export default function Status({ service }) {
|
|||
|
||||
if (!data.health) {
|
||||
statusLabel = data.status.replace("running", t("docker.running"))
|
||||
} else {
|
||||
statusLabel = data.health === "healthy" ? t("docker.healthy") : data.health
|
||||
}
|
||||
|
||||
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="text-[8px] font-bold text-emerald-500/80 uppercase">{data.health || statusLabel}</div>
|
||||
<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">{statusLabel}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue