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.

Hide Reset on storage filter row when source is externally forced

rcourtman93ba6108926f
diff --git a/frontend-modern/src/components/Storage/StoragePageControls.tsx b/frontend-modern/src/components/Storage/StoragePageControls.tsx
index f00ba0a3dd..80204d9ba8 100644
--- a/frontend-modern/src/components/Storage/StoragePageControls.tsx
+++ b/frontend-modern/src/components/Storage/StoragePageControls.tsx
@@ -116,7 +116,13 @@ export const StoragePageControls: Component<StoragePageControlsProps> = (props)
sortDirection: props.sortDirection(),
groupBy: props.storageFilterGroupBy(),
statusFilter: props.statusFilter(),
- sourceFilter: props.sourceFilter(),
+ // When the Source filter is suppressed (a platform page like
+ // Proxmox/Storage forces it to its own scope via
+ // `forcedSourceFilter`), the user cannot change it — so it must not
+ // count as an "active filter" that surfaces the Reset button.
+ sourceFilter: props.suppressSourceFilter
+ ? DEFAULT_STORAGE_SOURCE_FILTER
+ : props.sourceFilter(),
diskRoleFilter: props.diskRoleFilter?.(),
diskGroupFilter: props.diskGroupFilter?.(),
}) ||