* [pdm-devel] [PATCH datacenter-manager] ui: pve: node: cleanup
@ 2025-11-28 10:47 Dominik Csapak
2025-11-28 18:53 ` [pdm-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2025-11-28 10:47 UTC (permalink / raw)
To: pdm-devel
the changed method will only be called if the properties change and
return true if none is given. So returning true when any property
changed is already the default behavior, no need for us to implement it
again.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
ui/src/pve/node/mod.rs | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/ui/src/pve/node/mod.rs b/ui/src/pve/node/mod.rs
index 66ce8dda..1fcd92eb 100644
--- a/ui/src/pve/node/mod.rs
+++ b/ui/src/pve/node/mod.rs
@@ -2,10 +2,7 @@ use std::rc::Rc;
use gloo_utils::window;
use proxmox_yew_comp::{AptPackageManager, ConsoleType, XTermJs};
-use yew::{
- virtual_dom::{VComp, VNode},
- Context,
-};
+use yew::virtual_dom::{VComp, VNode};
use pwt::{
css::{AlignItems, ColorScheme},
@@ -51,12 +48,6 @@ impl yew::Component for PveNodePanelComp {
Self
}
- fn changed(&mut self, ctx: &Context<Self>, old_props: &Self::Properties) -> bool {
- let props = ctx.props();
-
- props.remote != old_props.remote || props.node != old_props.node
- }
-
fn view(&self, ctx: &yew::Context<Self>) -> yew::Html {
let props = ctx.props();
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pdm-devel] applied: [PATCH datacenter-manager] ui: pve: node: cleanup
2025-11-28 10:47 [pdm-devel] [PATCH datacenter-manager] ui: pve: node: cleanup Dominik Csapak
@ 2025-11-28 18:53 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2025-11-28 18:53 UTC (permalink / raw)
To: pdm-devel, Dominik Csapak
On Fri, 28 Nov 2025 11:47:55 +0100, Dominik Csapak wrote:
> the changed method will only be called if the properties change and
> return true if none is given. So returning true when any property
> changed is already the default behavior, no need for us to implement it
> again.
>
>
Applied, thanks!
[1/1] ui: pve: node: cleanup
commit: 3cdca4e9e5cfba535f61853a9e64d5f2359ebb92
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-28 18:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-28 10:47 [pdm-devel] [PATCH datacenter-manager] ui: pve: node: cleanup Dominik Csapak
2025-11-28 18:53 ` [pdm-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox