[pve-devel] [PATCH proxmox_dart_api_client v2 1/1] fix: ui: add missing `paused` status check
Shan Shaji
s.shaji at proxmox.com
Mon Jun 2 15:37:55 CEST 2025
The `getStatus` function was not returning the corresponding
`PveResourceStatusType` when the status was `paused`. This commit adds
the missing status check.
Signed-off-by: Shan Shaji <s.shaji at proxmox.com>
---
changes since v1:
* Removed all formatting changes
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 16e18df..b92c1ef 100644
--- a/lib/src/models/pve_cluster_resources_model.dart
+++ b/lib/src/models/pve_cluster_resources_model.dart
@@ -69,6 +69,8 @@ abstract class PveClusterResourcesModel
return PveResourceStatusType.stopped;
}
+ if(status == 'paused') return PveResourceStatusType.paused;
+
return PveResourceStatusType.unknown;
}
}
--
2.39.5
More information about the pve-devel
mailing list