Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

fix(ui): add missing onClick prop to GuestRow

rcourtman25567204f1e0
diff --git a/frontend-modern/src/components/Dashboard/GuestRow.tsx b/frontend-modern/src/components/Dashboard/GuestRow.tsx
index a0163b31ac..657f17cbb4 100644
--- a/frontend-modern/src/components/Dashboard/GuestRow.tsx
+++ b/frontend-modern/src/components/Dashboard/GuestRow.tsx
@@ -484,6 +484,8 @@ interface GuestRowProps {
isGroupedView?: boolean;
/** IDs of columns that should be visible */
visibleColumnIds?: string[];
+ /** Click handler for the row */
+ onClick?: () => void;
}
export function GuestRow(props: GuestRowProps) {
@@ -762,9 +764,10 @@ export function GuestRow(props: GuestRowProps) {
return (
<>
<tr
- class={rowClass()}
+ class={`${rowClass()} ${props.onClick ? 'cursor-pointer' : ''}`}
style={rowStyle()}
data-guest-id={guestId()}
+ onClick={props.onClick}
>
{/* Name - always visible */}
<td class={`pr-2 py-1 align-middle whitespace-nowrap ${props.isGroupedView ? GROUPED_FIRST_CELL_INDENT : DEFAULT_FIRST_CELL_INDENT}`}>