mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
fix(dashboard): reuse translated host status labels (#1475)
* fix(ci): build plugin SDK before dependent checks * fix(mysql): keep plugin settings scope indexes within limits * test(mysql): refresh reviewed plugin upgrade SQL * fix(dashboard): reuse translated host status labels
This commit is contained in:
1 parent
488e940c1a
commit
4a1880acb8
1 file changed
+4
-9
@@ -432,8 +432,7 @@ export function HostStatusCard({
|
||||
</span>
|
||||
</div>
|
||||
<span className="text-xs text-muted-foreground">
|
||||
{online}/{hosts.length}{" "}
|
||||
{t("dashboardTab.availableLower", { defaultValue: "Available" })}
|
||||
{online}/{hosts.length} {t("hosts.status.available")}
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex flex-col overflow-auto flex-1">
|
||||
@@ -499,14 +498,10 @@ export function HostStatusCard({
|
||||
{statusLoading
|
||||
? t("dashboardTab.checking")
|
||||
: availability === "online"
|
||||
? t("dashboardTab.available", {
|
||||
defaultValue: "AVAILABLE",
|
||||
})
|
||||
? t("hosts.status.available")
|
||||
: availability === "reachable"
|
||||
? t("dashboardTab.reachable", {
|
||||
defaultValue: "REACHABLE",
|
||||
})
|
||||
: t("dashboardTab.offline")}
|
||||
? t("hosts.status.reachable")
|
||||
: t("hosts.status.offline")}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user