[pdm-devel] [RFC datacenter-manager 7/8] ui: remote tasks: use correct base url for PBS tasks
Lukas Wagner
l.wagner at proxmox.com
Tue Nov 11 11:50:58 CET 2025
This base URL will be used to retrieve the task log when clicking on a
remote task in the task list. The corresponding PBS API endpoint will be
added later.
Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
ui/src/remotes/tasks.rs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/ui/src/remotes/tasks.rs b/ui/src/remotes/tasks.rs
index 4853a1cf..825bd57f 100644
--- a/ui/src/remotes/tasks.rs
+++ b/ui/src/remotes/tasks.rs
@@ -124,8 +124,11 @@ impl Component for PbsRemoteTaskList {
.as_ref()
.and_then(|(upid, endtime)| upid.parse::<RemoteUpid>().ok().map(|upid| (upid, endtime)))
.map(|(remote_upid, endtime)| {
- // TODO PBS
- let base_url = format!("/pve/remotes/{}/tasks", remote_upid.remote());
+ let base_url = format!(
+ "/{}/remotes/{}/tasks",
+ remote_upid.remote_type(),
+ remote_upid.remote()
+ );
TaskViewer::new(remote_upid.to_string())
.endtime(endtime)
.base_url(base_url)
--
2.47.3
More information about the pdm-devel
mailing list