From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 4FE0B1FF184 for ; Thu, 18 Dec 2025 10:51:07 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id CCE8316ADB; Thu, 18 Dec 2025 10:51:52 +0100 (CET) From: Lukas Wagner To: pdm-devel@lists.proxmox.com Date: Thu, 18 Dec 2025 10:51:37 +0100 Message-ID: <20251218095137.83377-5-l.wagner@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251218095137.83377-1-l.wagner@proxmox.com> References: <20251218095137.83377-1-l.wagner@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1766051496521 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.966 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_MAILER 2 Automated Mailer Tag Left in Email SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pdm-devel] [PATCH datacenter-manager 2/2] ui: use task descriptions from yew-comp for PBS and PVE X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" Signed-off-by: Lukas Wagner --- ui/src/tasks.rs | 109 +++--------------------------------------------- 1 file changed, 5 insertions(+), 104 deletions(-) diff --git a/ui/src/tasks.rs b/ui/src/tasks.rs index 7e40863d..f0931c9e 100644 --- a/ui/src/tasks.rs +++ b/ui/src/tasks.rs @@ -1,4 +1,7 @@ -use proxmox_yew_comp::utils::{format_task_description, format_upid, register_task_description}; +use proxmox_yew_comp::utils::{ + format_task_description, format_upid, register_pbs_tasks, register_pve_tasks, + register_task_description, +}; use pwt::tr; use pdm_api_types::{NativeUpid, RemoteUpid}; @@ -6,112 +9,10 @@ use yew::virtual_dom::Key; pub fn register_tasks() { register_pve_tasks(); + register_pbs_tasks(); register_pdm_tasks(); } -fn register_pve_tasks() { - register_task_description("qmstart", ("VM", tr!("Start"))); - register_task_description("acmedeactivate", ("ACME Account", tr!("Deactivate"))); - register_task_description("acmenewcert", ("SRV", tr!("Order Certificate"))); - register_task_description("acmerefresh", ("ACME Account", tr!("Refresh"))); - register_task_description("acmeregister", ("ACME Account", tr!("Register"))); - register_task_description("acmerenew", ("SRV", tr!("Renew Certificate"))); - register_task_description("acmerevoke", ("SRV", tr!("Revoke Certificate"))); - register_task_description("acmeupdate", ("ACME Account", tr!("Update"))); - register_task_description("auth-realm-sync", (tr!("Realm"), tr!("Sync"))); - register_task_description("auth-realm-sync-test", (tr!("Realm"), tr!("Sync Preview"))); - register_task_description("cephcreatemds", ("Ceph Metadata Server", tr!("Create"))); - register_task_description("cephcreatemgr", ("Ceph Manager", tr!("Create"))); - register_task_description("cephcreatemon", ("Ceph Monitor", tr!("Create"))); - register_task_description("cephcreateosd", ("Ceph OSD", tr!("Create"))); - register_task_description("cephcreatepool", ("Ceph Pool", tr!("Create"))); - register_task_description("cephdestroymds", ("Ceph Metadata Server", tr!("Destroy"))); - register_task_description("cephdestroymgr", ("Ceph Manager", tr!("Destroy"))); - register_task_description("cephdestroymon", ("Ceph Monitor", tr!("Destroy"))); - register_task_description("cephdestroyosd", ("Ceph OSD", tr!("Destroy"))); - register_task_description("cephdestroypool", ("Ceph Pool", tr!("Destroy"))); - register_task_description("cephdestroyfs", ("CephFS", tr!("Destroy"))); - register_task_description("cephfscreate", ("CephFS", tr!("Create"))); - register_task_description("cephsetpool", ("Ceph Pool", tr!("Edit"))); - register_task_description("cephsetflags", tr!("Change global Ceph flags")); - register_task_description("clustercreate", tr!("Create Cluster")); - register_task_description("clusterjoin", tr!("Join Cluster")); - register_task_description("create_zone", tr!("Create EVPN Zone")); - register_task_description("create_vnet", tr!("Create EVPN VNet")); - register_task_description("dircreate", (tr!("Directory Storage"), tr!("Create"))); - register_task_description("dirremove", (tr!("Directory"), tr!("Remove"))); - register_task_description("download", (tr!("File"), tr!("Download"))); - register_task_description("hamigrate", ("HA", tr!("Migrate"))); - register_task_description("hashutdown", ("HA", tr!("Shutdown"))); - register_task_description("hastart", ("HA", tr!("Start"))); - register_task_description("hastop", ("HA", tr!("Stop"))); - register_task_description("imgcopy", tr!("Copy data")); - register_task_description("imgdel", tr!("Erase data")); - register_task_description("lvmcreate", (tr!("LVM Storage"), tr!("Create"))); - register_task_description("lvmremove", ("Volume Group", tr!("Remove"))); - register_task_description("lvmthincreate", (tr!("LVM-Thin Storage"), tr!("Create"))); - register_task_description("lvmthinremove", ("Thinpool", tr!("Remove"))); - register_task_description("migrateall", tr!("Bulk migrate VMs and Containers")); - register_task_description("move_volume", ("CT", tr!("Move Volume"))); - register_task_description("pbs-download", ("VM/CT", tr!("File Restore Download"))); - register_task_description("pull_file", ("CT", tr!("Pull file"))); - register_task_description("push_file", ("CT", tr!("Push file"))); - register_task_description("qmclone", ("VM", tr!("Clone"))); - register_task_description("qmconfig", ("VM", tr!("Configure"))); - register_task_description("qmcreate", ("VM", tr!("Create"))); - register_task_description("qmdelsnapshot", ("VM", tr!("Delete Snapshot"))); - register_task_description("qmdestroy", ("VM", tr!("Destroy"))); - register_task_description("qmigrate", ("VM", tr!("Migrate"))); - register_task_description("qmmove", ("VM", tr!("Move disk"))); - register_task_description("qmpause", ("VM", tr!("Pause"))); - register_task_description("qmreboot", ("VM", tr!("Reboot"))); - register_task_description("qmreset", ("VM", tr!("Reset"))); - register_task_description("qmrestore", ("VM", tr!("Restore"))); - register_task_description("qmresume", ("VM", tr!("Resume"))); - register_task_description("qmrollback", ("VM", tr!("Rollback"))); - register_task_description("qmshutdown", ("VM", tr!("Shutdown"))); - register_task_description("qmsnapshot", ("VM", tr!("Snapshot"))); - register_task_description("qmstart", ("VM", tr!("Start"))); - register_task_description("qmstop", ("VM", tr!("Stop"))); - register_task_description("qmsuspend", ("VM", tr!("Hibernate"))); - register_task_description("qmtemplate", ("VM", tr!("Convert to template"))); - register_task_description("reloadnetworkall", tr!("Apply SDN configuration")); - register_task_description("resize", ("VM/CT", tr!("Resize"))); - register_task_description("spiceproxy", ("VM/CT", tr!("Console") + " (Spice)")); - register_task_description("spiceshell", tr!("Shell") + " (Spice)"); - register_task_description("srvreload", tr!("Reload network configuration")); - register_task_description("startall", tr!("Bulk start VMs and Containers")); - register_task_description("stopall", tr!("Bulk shutdown VMs and Containers")); - register_task_description("suspendall", tr!("Suspend all VMs")); - register_task_description("unknownimgdel", tr!("Destroy image from unknown guest")); - register_task_description("wipedisk", ("Device", tr!("Wipe Disk"))); - register_task_description("vncproxy", ("VM/CT", tr!("Console"))); - register_task_description("vncshell", tr!("Shell")); - register_task_description("vzclone", ("CT", tr!("Clone"))); - register_task_description("vzcreate", ("CT", tr!("Create"))); - register_task_description("vzdelsnapshot", ("CT", tr!("Delete Snapshot"))); - register_task_description("vzdestroy", ("CT", tr!("Destroy"))); - register_task_description("vzdump", |_ty, id| match id { - Some(id) => format!("VM/CT {id} - {}", tr!("Backup")), - None => tr!("Backup Job"), - }); - register_task_description("vzmigrate", ("CT", tr!("Migrate"))); - register_task_description("vzmount", ("CT", tr!("Mount"))); - register_task_description("vzreboot", ("CT", tr!("Reboot"))); - register_task_description("vzrestore", ("CT", tr!("Restore"))); - register_task_description("vzresume", ("CT", tr!("Resume"))); - register_task_description("vzrollback", ("CT", tr!("Rollback"))); - register_task_description("vzshutdown", ("CT", tr!("Shutdown"))); - register_task_description("vzsnapshot", ("CT", tr!("Snapshot"))); - register_task_description("vzstart", ("CT", tr!("Start"))); - register_task_description("vzstop", ("CT", tr!("Stop"))); - register_task_description("vzsuspend", ("CT", tr!("Suspend"))); - register_task_description("vztemplate", ("CT", tr!("Convert to template"))); - register_task_description("vzumount", ("CT", tr!("Unmount"))); - register_task_description("zfscreate", (tr!("ZFS Storage"), tr!("Create"))); - register_task_description("zfsremove", ("ZFS Pool", tr!("Remove"))); -} - fn register_pdm_tasks() { register_task_description("logrotate", tr!("Log Rotation")); register_task_description( -- 2.47.3 _______________________________________________ pdm-devel mailing list pdm-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel