[pdm-devel] [PATCH yew-comp 2/5] utils: add pdm realm to `get_auth_domain_info`
Shannon Sterz
s.sterz at proxmox.com
Tue Sep 16 16:48:19 CEST 2025
so that the edit and remove buttons in the `AuthView` are properly
disabled.
Signed-off-by: Shannon Sterz <s.sterz at proxmox.com>
---
src/utils.rs | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/src/utils.rs b/src/utils.rs
index 1a4ad40..bfdbccd 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -269,7 +269,8 @@ pub fn get_auth_domain_info(ty: &str) -> Option<AuthDomainInfo> {
sync: false,
});
}
- if ty == "pve" {
+
+ if matches!(ty, "pve" | "pbs" | "pdm") {
return Some(AuthDomainInfo {
ty: ty.to_string(),
//description: tr!("Proxmox VE authentication server"),
@@ -280,17 +281,7 @@ pub fn get_auth_domain_info(ty: &str) -> Option<AuthDomainInfo> {
sync: false,
});
}
- if ty == "pbs" {
- return Some(AuthDomainInfo {
- ty: ty.to_string(),
- //description: tr!("Proxmox Backup authentication server"),
- add: false,
- edit: false,
- tfa: true,
- pwchange: true,
- sync: false,
- });
- }
+
if ty == "openid" {
return Some(AuthDomainInfo {
ty: ty.to_string(),
--
2.47.3
More information about the pdm-devel
mailing list