[pve-devel] [PATCH proxmox_dart_api_client v3 1/1] fix: ui: add missing `paused` status check
Shan Shaji
s.shaji at proxmox.com
Thu Jun 5 11:41:18 CEST 2025
On the resources tab when the guest status was paused,
the guest was showing the status as `unknown`. However on
the overview page the status was shown correctly.
The issue happens due to the `getStatus` function not
returning the corresponding `PveResourceStatusType` when the
status is `paused`. Add the missing status check to fix the issue.
Signed-off-by: Shan Shaji <s.shaji at proxmox.com>
---
changes since v2:
* rebase changes with master.
* fix commit message.
lib/src/models/pve_cluster_resources_model.dart | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/src/models/pve_cluster_resources_model.dart b/lib/src/models/pve_cluster_resources_model.dart
index 51ea8fa..a6bd7ee 100644
--- a/lib/src/models/pve_cluster_resources_model.dart
+++ b/lib/src/models/pve_cluster_resources_model.dart
@@ -71,6 +71,8 @@ abstract class PveClusterResourcesModel
if(status == 'prelaunch') return PveResourceStatusType.prelaunch;
+ if (status == 'paused') return PveResourceStatusType.paused;
+
return PveResourceStatusType.unknown;
}
}
--
2.39.5
More information about the pve-devel
mailing list