From 93aff683ec4ad735f7ac1826bbf2ec913cf07118 Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Tue, 19 Aug 2025 17:48:21 +0000 Subject: [PATCH] fix: restore Storage and Backups tab functionality for PBS-only setups - Storage tab now shows PBS storage even without PVE nodes - Backups tab now shows PBS backups even without PVE nodes - Empty state message only shows when truly no nodes are configured - Both tabs remain functional for PBS-only deployments --- .../src/components/Backups/UnifiedBackups.tsx | 16 ++++++------ .../src/components/Storage/Storage.tsx | 25 +++++-------------- 2 files changed, 14 insertions(+), 27 deletions(-) diff --git a/frontend-modern/src/components/Backups/UnifiedBackups.tsx b/frontend-modern/src/components/Backups/UnifiedBackups.tsx index d5b7c157c..2737c6c35 100644 --- a/frontend-modern/src/components/Backups/UnifiedBackups.tsx +++ b/frontend-modern/src/components/Backups/UnifiedBackups.tsx @@ -736,15 +736,15 @@ const UnifiedBackups: Component = () => { return (
- {/* Empty State - No PVE Nodes Configured */} - n.type === 'pve').length === 0}> + {/* Empty State - No nodes at all configured */} +
-

No Proxmox VE nodes configured

-

Add a Proxmox VE node in the Settings tab to start monitoring your infrastructure.

+

No backup sources configured

+

Add a Proxmox VE or PBS node in the Settings tab to start monitoring backups.

- {/* PBS Status Summary */} - 0 && (state.nodes || []).filter((n: any) => n.type === 'pve').length > 0}> + {/* PBS Status Summary - show regardless of PVE nodes */} + 0}>
{(instance) => ( @@ -798,8 +798,8 @@ const UnifiedBackups: Component = () => {
- {/* Main Content - Only show when PVE nodes are configured */} - n.type === 'pve').length > 0}> + {/* Main Content - show when any nodes or PBS are configured */} + 0 || (state.pbs && state.pbs.length > 0)}> {/* Backup Frequency Chart */}
diff --git a/frontend-modern/src/components/Storage/Storage.tsx b/frontend-modern/src/components/Storage/Storage.tsx index 02614b239..150766715 100644 --- a/frontend-modern/src/components/Storage/Storage.tsx +++ b/frontend-modern/src/components/Storage/Storage.tsx @@ -302,15 +302,15 @@ const Storage: Component = () => {
- {/* Empty State - No PVE Nodes Configured */} - n.type === 'pve').length === 0}> + {/* Helpful hint for no PVE nodes but still show content */} + n.type === 'pve').length === 0 && sortedStorage().length === 0}>
-

No Proxmox VE nodes configured

-

Add a Proxmox VE node in the Settings tab to start monitoring your infrastructure.

+

No storage configured

+

Add a Proxmox VE or PBS node in the Settings tab to start monitoring storage.

- {/* Empty State - No Storage Found (but nodes are configured) */} - n.type === 'pve').length > 0 && sortedStorage().length === 0}> -
-
- - - -

No storage found

-

No storage repositories are configured or visible.

-
-
-
- - {/* Storage Table */} - n.type === 'pve').length > 0 && sortedStorage().length > 0}> + {/* Storage Table - shows for both PVE and PBS storage */} + 0}>