mirror of
https://github.com/khairul169/garage-webui.git
synced 2025-10-14 06:59:30 +07:00
fix storage node status
This commit is contained in:
parent
a6640157c1
commit
fbcd83709b
4
.gitignore
vendored
4
.gitignore
vendored
@ -26,3 +26,7 @@ dist-ssr
|
||||
.env*
|
||||
!.env.example
|
||||
docker-compose.*.yml
|
||||
|
||||
data/
|
||||
meta/
|
||||
garage.toml
|
||||
|
@ -38,8 +38,8 @@ const HomePage = () => {
|
||||
health?.status === "healthy"
|
||||
? "text-success"
|
||||
: health?.status === "degraded"
|
||||
? "text-warning"
|
||||
: "text-error"
|
||||
? "text-warning"
|
||||
: "text-error"
|
||||
)}
|
||||
/>
|
||||
<StatsCard title="Nodes" icon={HardDrive} value={health?.knownNodes} />
|
||||
@ -56,7 +56,7 @@ const HomePage = () => {
|
||||
<StatsCard
|
||||
title="Active Storage Nodes"
|
||||
icon={DatabaseZap}
|
||||
value={health?.storageNodesOk}
|
||||
value={health?.storageNodesUp}
|
||||
/>
|
||||
<StatsCard
|
||||
title="Partitions"
|
||||
|
@ -5,7 +5,7 @@ export type GetHealthResult = {
|
||||
knownNodes: number;
|
||||
connectedNodes: number;
|
||||
storageNodes: number;
|
||||
storageNodesOk: number;
|
||||
storageNodesUp: number;
|
||||
partitions: number;
|
||||
partitionsQuorum: number;
|
||||
partitionsAllOk: number;
|
||||
|
Loading…
x
Reference in New Issue
Block a user