From 026a0b2e1785c6eccd76cf239a90a93a3d305d71 Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Sat, 9 Aug 2025 22:31:11 +0000 Subject: [PATCH] attempt to address: CT templates showing in backups tab - Skip vztmpl and iso types from backup display as they are not actual backups - These are container templates and ISO images, not backup files --- .../src/components/Backups/UnifiedBackups.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend-modern/src/components/Backups/UnifiedBackups.tsx b/frontend-modern/src/components/Backups/UnifiedBackups.tsx index e71eb7995..04b4f9057 100644 --- a/frontend-modern/src/components/Backups/UnifiedBackups.tsx +++ b/frontend-modern/src/components/Backups/UnifiedBackups.tsx @@ -150,6 +150,11 @@ const UnifiedBackups: Component = () => { // Normalize local backups (including PBS through PVE storage) state.pveBackups?.storageBackups?.forEach((backup) => { + // Skip templates and ISOs - they're not backups + if (backup.type === 'vztmpl' || backup.type === 'iso') { + return; + } + // Determine if this is actually a PBS backup based on storage const backupType = backup.isPBS ? 'remote' : 'local'; @@ -173,10 +178,6 @@ const UnifiedBackups: Component = () => { displayType = 'VM'; } else if (backup.type === 'lxc') { displayType = 'LXC'; - } else if (backup.type === 'vztmpl') { - displayType = 'Template'; - } else if (backup.type === 'iso') { - displayType = 'ISO'; } else { displayType = 'VM'; // Default fallback }