mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-12-14 16:16:21 +00:00
Update AppImage
This commit is contained in:
@@ -29,6 +29,7 @@ interface CategoryCheck {
|
|||||||
status: string
|
status: string
|
||||||
reason?: string
|
reason?: string
|
||||||
details?: any
|
details?: any
|
||||||
|
dismissable?: boolean
|
||||||
[key: string]: any
|
[key: string]: any
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -315,6 +316,8 @@ export function HealthStatusModal({ open, onOpenChange, getApiUrl }: HealthStatu
|
|||||||
<div className="mt-2 space-y-1">
|
<div className="mt-2 space-y-1">
|
||||||
{Object.entries(details).map(([detailKey, detailValue]: [string, any]) => {
|
{Object.entries(details).map(([detailKey, detailValue]: [string, any]) => {
|
||||||
if (typeof detailValue === "object" && detailValue !== null) {
|
if (typeof detailValue === "object" && detailValue !== null) {
|
||||||
|
const isDismissable = detailValue.dismissable !== false
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={detailKey}
|
key={detailKey}
|
||||||
@@ -326,7 +329,7 @@ export function HealthStatusModal({ open, onOpenChange, getApiUrl }: HealthStatu
|
|||||||
<span className="ml-1 text-muted-foreground">{detailValue.reason}</span>
|
<span className="ml-1 text-muted-foreground">{detailValue.reason}</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{(status === "WARNING" || status === "CRITICAL") && (
|
{(status === "WARNING" || status === "CRITICAL") && isDismissable && (
|
||||||
<Button
|
<Button
|
||||||
size="sm"
|
size="sm"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
|||||||
@@ -603,7 +603,12 @@ export function StorageOverview() {
|
|||||||
)
|
)
|
||||||
.sort((a, b) => a.name.localeCompare(b.name))
|
.sort((a, b) => a.name.localeCompare(b.name))
|
||||||
.map((storage) => (
|
.map((storage) => (
|
||||||
<div key={storage.name} className="border rounded-lg p-4">
|
<div
|
||||||
|
key={storage.name}
|
||||||
|
className={`border rounded-lg p-4 ${
|
||||||
|
storage.status === "error" ? "border-red-500/50 bg-red-500/5" : ""
|
||||||
|
}`}
|
||||||
|
>
|
||||||
<div className="flex items-center justify-between mb-3">
|
<div className="flex items-center justify-between mb-3">
|
||||||
{/* Desktop: Icon + Name + Badge tipo alineados horizontalmente */}
|
{/* Desktop: Icon + Name + Badge tipo alineados horizontalmente */}
|
||||||
<div className="hidden md:flex items-center gap-3">
|
<div className="hidden md:flex items-center gap-3">
|
||||||
@@ -625,7 +630,9 @@ export function StorageOverview() {
|
|||||||
className={
|
className={
|
||||||
storage.status === "active"
|
storage.status === "active"
|
||||||
? "bg-green-500/10 text-green-500 border-green-500/20"
|
? "bg-green-500/10 text-green-500 border-green-500/20"
|
||||||
: "bg-gray-500/10 text-gray-500 border-gray-500/20"
|
: storage.status === "error"
|
||||||
|
? "bg-red-500/10 text-red-500 border-red-500/20"
|
||||||
|
: "bg-gray-500/10 text-gray-500 border-gray-500/20"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{storage.status}
|
{storage.status}
|
||||||
|
|||||||
Reference in New Issue
Block a user