From: Stefan Hanreich <s.hanreich@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH proxmox-datacenter-manager 1/1] resource tree: fix navigating to network resources
Date: Mon, 1 Dec 2025 18:57:22 +0100 [thread overview]
Message-ID: <20251201175724.73576-1-s.hanreich@proxmox.com> (raw)
The resources tree generated `sdn/zones` as a slug for the zone
network resource, which shows the SDN resource tree - but the actual
corect slug would be `sdn`. Additionally, with the addition of
fabrics to the network resources, make the resource tree navigate to
the SDN tree as well, instead of just for zones.
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
---
ui/src/lib.rs | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/ui/src/lib.rs b/ui/src/lib.rs
index 27a5108..02cebed 100644
--- a/ui/src/lib.rs
+++ b/ui/src/lib.rs
@@ -1,6 +1,6 @@
use js_sys::{Array, JsString, Object};
use pdm_api_types::remotes::RemoteType;
-use pdm_api_types::resource::{PveLxcResource, PveNetworkResource, PveQemuResource};
+use pdm_api_types::resource::{PveLxcResource, PveQemuResource};
use pdm_client::types::Resource;
use serde::{Deserialize, Serialize};
@@ -185,9 +185,7 @@ pub(crate) fn navigate_to<C: yew::Component>(
true,
format!("storage+{}+{}", storage.node, storage.storage),
),
- pdm_client::types::Resource::PveNetwork(PveNetworkResource::Zone(_)) => {
- (false, "sdn/zones".to_string())
- }
+ pdm_client::types::Resource::PveNetwork(_) => (false, "sdn".to_string()),
pdm_client::types::Resource::PbsDatastore(store) => (true, store.name.clone()),
// FIXME: implement
_ => return None,
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next reply other threads:[~2025-12-01 17:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-01 17:57 Stefan Hanreich [this message]
2025-12-01 18:27 ` [pdm-devel] applied: " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251201175724.73576-1-s.hanreich@proxmox.com \
--to=s.hanreich@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.