Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Route ResourceDetailDrawer mail tab through ProxmoxMailGatewayDrawer
rcourtman0cd4d50f5030
diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsxindex 52c54152a7..6129ab8bec 100644--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx@@ -3,7 +3,7 @@ import type { Component } from 'solid-js';import type { Resource } from '@/types/resource';import { StatusDot } from '@/components/shared/StatusDot';import { ReportMergeModal } from './ReportMergeModal';-import { PMGInstanceDrawer } from '@/components/PMG/PMGInstanceDrawer';+import { ProxmoxMailGatewayDrawer } from '@/features/proxmox/ProxmoxMailGatewayDrawer';import { K8sDeploymentsDrawer } from '@/components/Kubernetes/K8sDeploymentsDrawer';import { K8sNamespacesDrawer } from '@/components/Kubernetes/K8sNamespacesDrawer';import { SwarmServicesDrawer } from '@/components/Docker/SwarmServicesDrawer';@@ -224,10 +224,7 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {<TabAvailabilityNotice message={getSpecializedTabAvailabilityMessage('mail')} />}>- <PMGInstanceDrawer- resourceId={props.resource.id}- resourceName={drawer.displayName() || props.resource.id}- />+ <ProxmoxMailGatewayDrawer instanceRow={props.resource} /></Show></Show></div>diff --git a/frontend-modern/src/features/proxmox/ProxmoxMailGatewayDrawer.tsx b/frontend-modern/src/features/proxmox/ProxmoxMailGatewayDrawer.tsxindex cc88005856..ef6218b1be 100644--- a/frontend-modern/src/features/proxmox/ProxmoxMailGatewayDrawer.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxMailGatewayDrawer.tsx@@ -228,7 +228,7 @@ function InOutBar(props: {export const ProxmoxMailGatewayDrawer: Component<{instanceRow: Resource;- onClose: () => void;+ onClose?: () => void;}> = (props) => {const id = () => {const meta = props.instanceRow.pmg;@@ -314,14 +314,16 @@ export const ProxmoxMailGatewayDrawer: Component<{<div class="font-mono text-[10px] text-muted break-all">{hostname()}</div></Show></div>- <button- type="button"- onClick={props.onClose}- class="shrink-0 inline-flex h-7 w-7 items-center justify-center rounded-sm text-muted hover:bg-surface-hover hover:text-base-content"- aria-label="Close mail gateway drawer"- >- <XIcon class="h-4 w-4" />- </button>+ <Show when={props.onClose}>+ <button+ type="button"+ onClick={() => props.onClose?.()}+ class="shrink-0 inline-flex h-7 w-7 items-center justify-center rounded-sm text-muted hover:bg-surface-hover hover:text-base-content"+ aria-label="Close mail gateway drawer"+ >+ <XIcon class="h-4 w-4" />+ </button>+ </Show></header><Show