From 2e905cc1955d5f9fd43cdbdff2fec0045b2ae89b Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Wed, 27 Aug 2025 19:08:00 +0000 Subject: [PATCH] feat: add dynamic VM/LXC/PMG type filter for backups When PMG host backups are detected in the backup list, a new type filter automatically appears with options to filter by VM, LXC, or PMG (host) type. This makes it easier to find specific backup types when host backups exist. The filter is dynamic and only shows when there are host-type backups present. --- .../src/components/Backups/BackupsFilter.tsx | 50 +++++++++++++++++++ .../src/components/Backups/UnifiedBackups.tsx | 12 ++++- 2 files changed, 61 insertions(+), 1 deletion(-) diff --git a/frontend-modern/src/components/Backups/BackupsFilter.tsx b/frontend-modern/src/components/Backups/BackupsFilter.tsx index 3dfdf374a..5da64c1fe 100644 --- a/frontend-modern/src/components/Backups/BackupsFilter.tsx +++ b/frontend-modern/src/components/Backups/BackupsFilter.tsx @@ -9,6 +9,9 @@ interface BackupsFilterProps { groupBy: () => 'date' | 'guest'; setGroupBy: (value: 'date' | 'guest') => void; searchInputRef?: (el: HTMLInputElement) => void; + typeFilter?: () => 'all' | 'VM' | 'LXC' | 'Host'; + setTypeFilter?: (value: 'all' | 'VM' | 'LXC' | 'Host') => void; + hasHostBackups?: () => boolean; } export const BackupsFilter: Component = (props) => { @@ -107,6 +110,53 @@ export const BackupsFilter: Component = (props) => { + {/* Type Filter - Only show when there are Host backups */} + +
+ + + + +
+ +
+ {/* Group By Filter */}