From 606bcdc835f0f6b38cb683a63607f6a1c2ff53c9 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 20 Mar 2023 07:02:39 -0700 Subject: [PATCH] Add docker healthy translation --- public/locales/en/common.json | 1 + src/components/services/status.jsx | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/public/locales/en/common.json b/public/locales/en/common.json index a29bccd1f..92f429264 100755 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -64,6 +64,7 @@ "offline": "Offline", "error": "Error", "unknown": "Unknown", + "healthy": "Healthy", "starting": "Starting", "unhealthy": "Unhealthy", "not_found": "Not Found", diff --git a/src/components/services/status.jsx b/src/components/services/status.jsx index dba30f5b1..70cad6b27 100644 --- a/src/components/services/status.jsx +++ b/src/components/services/status.jsx @@ -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 ( -
-
{data.health || statusLabel}
+
+
{statusLabel}
); }