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.sh...@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 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel