[pve-devel] [PATCH pve_flutter_frontend v2 2/2] fix: ui: guests missing in resources tab when status is `paused`

Shan Shaji s.shaji at proxmox.com
Mon Jun 2 15:37:54 CEST 2025


When the guest status is set to `paused` the guest was not showing in
the resources tab. Also there were no option in the resources
filter to select the `paused` status under the status section.

This commit fixes the issue by adding the `paused` status under the
status section in the resources filter sheet.

Signed-off-by: Shan Shaji <s.shaji at proxmox.com>
---
 
 changes since v1:
 * Removed all formatting changes. 
 * New `paused` status option is added after refactoring the filter sheet. 
 
 lib/widgets/pve_mobile_resource_filter_sheet.dart | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/lib/widgets/pve_mobile_resource_filter_sheet.dart b/lib/widgets/pve_mobile_resource_filter_sheet.dart
index cee3a49..c09b2cf 100644
--- a/lib/widgets/pve_mobile_resource_filter_sheet.dart
+++ b/lib/widgets/pve_mobile_resource_filter_sheet.dart
@@ -112,6 +112,20 @@ class PveMobileResourceFilterSheet extends StatelessWidget {
                       ),
                     ),
                   ),
+                  _ProxmoxResourceFilterListTile(
+                    title: 'Paused',
+                    value: state.statusFilter
+                        .contains(PveResourceStatusType.paused),
+                    onChanged: (v) => rBloc.events.add(
+                      FilterResources(
+                        statusFilter: _addOrRemove(
+                          v!,
+                          PveResourceStatusType.paused,
+                          state.statusFilter,
+                        ),
+                      ),
+                    ),
+                  ),
                 ],
               )
             ],
-- 
2.39.5





More information about the pve-devel mailing list