[pdm-devel] [PATCH datacenter-manager 3/3] ui: lxc: remove wrong PartialEq implementation

Dietmar Maurer dietmar at proxmox.com
Tue Oct 21 08:38:03 CEST 2025


i.e. we want to update the view on cpu property changes.

Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 ui/src/pve/lxc/overview.rs | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/ui/src/pve/lxc/overview.rs b/ui/src/pve/lxc/overview.rs
index 3c5ead4..4164727 100644
--- a/ui/src/pve/lxc/overview.rs
+++ b/ui/src/pve/lxc/overview.rs
@@ -20,7 +20,7 @@ use pdm_client::types::{IsRunning, LxcStatus};
 
 use crate::renderer::{separator, status_row};
 
-#[derive(Clone, Debug, Properties)]
+#[derive(Clone, Debug, Properties, PartialEq)]
 pub struct LxcOverviewPanel {
     remote: String,
     node: String,
@@ -35,20 +35,6 @@ pub struct LxcOverviewPanel {
     pub status_interval: u32,
 }
 
-impl PartialEq for LxcOverviewPanel {
-    fn eq(&self, other: &Self) -> bool {
-        if self.remote == other.remote && self.node == other.node {
-            // only check some fields, so we don't update when e.g. only the cpu changes
-            self.info.name == other.info.name
-                && self.info.id == other.info.id
-                && self.info.node == other.node
-        } else {
-            false
-        }
-    }
-}
-impl Eq for LxcOverviewPanel {}
-
 impl LxcOverviewPanel {
     pub fn new(remote: String, node: String, info: PveLxcResource) -> Self {
         yew::props!(Self { remote, node, info })
-- 
2.47.3




More information about the pdm-devel mailing list