fix(ui): показывать неизвестный статус карты отдельно
This commit is contained in:
1 parent
1215cbe8ae
commit
329d6b82f7
10 files changed
+44
-12
No files matched your search
@@ -270,7 +270,7 @@ export function buildDashboardInternetPath(args: {
|
||||
site: s.site,
|
||||
country: s.country,
|
||||
enabled: s.enabled,
|
||||
status: s.status === "degraded" ? "online" : s.status,
|
||||
status: s.status === "unknown" ? null : s.status === "degraded" ? "online" : s.status,
|
||||
latency: s.latency,
|
||||
model: s.model ?? null,
|
||||
wanUplinks: (s.wanUplinks ?? []).map((w) => ({ ...w })),
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
export type ServerStatus = "online" | "offline" | "degraded"
|
||||
export type ServerStatus = "online" | "offline" | "degraded" | "unknown"
|
||||
export type ServerType = "jump-host" | "exit-node" | "home-router"
|
||||
|
||||
export interface WanUplink {
|
||||
|
||||
Reference in new issue
Block a user