mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-17 19:16:25 +00:00
Update system-overview.tsx
This commit is contained in:
@@ -256,6 +256,13 @@ export function SystemOverview() {
|
|||||||
setStorageData(storageResult[0])
|
setStorageData(storageResult[0])
|
||||||
setProxmoxStorageData(storageResult[1])
|
setProxmoxStorageData(storageResult[1])
|
||||||
setNetworkData(networkResult)
|
setNetworkData(networkResult)
|
||||||
|
|
||||||
|
setTimeout(async () => {
|
||||||
|
const refreshedSystemData = await fetchSystemData()
|
||||||
|
if (refreshedSystemData) {
|
||||||
|
setSystemData(refreshedSystemData)
|
||||||
|
}
|
||||||
|
}, 2000)
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchAllData()
|
fetchAllData()
|
||||||
@@ -498,9 +505,11 @@ export function SystemOverview() {
|
|||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card className="bg-card border-border">
|
<Card className="bg-card border-border">
|
||||||
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
|
<CardHeader>
|
||||||
<CardTitle className="text-sm font-medium text-muted-foreground">Active VM & LXC</CardTitle>
|
<CardTitle className="text-foreground flex items-center">
|
||||||
<Server className="h-4 w-4 text-muted-foreground" />
|
<Server className="h-5 w-5 mr-2" />
|
||||||
|
Active VM & LXC
|
||||||
|
</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
{loadingStates.vms ? (
|
{loadingStates.vms ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user