mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 03:26:17 +00:00
Update AppImage
This commit is contained in:
@@ -6,7 +6,7 @@ import { HardDrive, Database, AlertTriangle, CheckCircle2, XCircle, Square, Ther
|
||||
import { Badge } from "@/components/ui/badge"
|
||||
import { Progress } from "@/components/ui/progress"
|
||||
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "@/components/ui/dialog"
|
||||
import { getApiUrl } from "../lib/api-config"
|
||||
import { fetchApi } from "../lib/api-config"
|
||||
|
||||
interface DiskInfo {
|
||||
name: string
|
||||
@@ -94,14 +94,11 @@ export function StorageOverview() {
|
||||
|
||||
const fetchStorageData = async () => {
|
||||
try {
|
||||
const [storageResponse, proxmoxResponse] = await Promise.all([
|
||||
fetch(getApiUrl("/api/storage")),
|
||||
fetch(getApiUrl("/api/proxmox-storage")),
|
||||
const [data, proxmoxData] = await Promise.all([
|
||||
fetchApi<StorageData>("/api/storage"),
|
||||
fetchApi<ProxmoxStorageData>("/api/proxmox-storage"),
|
||||
])
|
||||
|
||||
const data = await storageResponse.json()
|
||||
const proxmoxData = await proxmoxResponse.json()
|
||||
|
||||
setStorageData(data)
|
||||
setProxmoxStorage(proxmoxData)
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user