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 9FD401FF13B for ; Wed, 22 Apr 2026 14:41:09 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7FE3F1DCEB; Wed, 22 Apr 2026 14:41:09 +0200 (CEST) From: Shannon Sterz To: pbs-devel@lists.proxmox.com Subject: [PATCH yew-comp 07/12] certificate list: use certificate file name fetched from the backend Date: Wed, 22 Apr 2026 14:40:17 +0200 Message-ID: <20260422124022.17952-8-s.sterz@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260422124022.17952-1-s.sterz@proxmox.com> References: <20260422124022.17952-1-s.sterz@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1776861541673 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.122 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 SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: ZIPNDWS7SLIJHBEDVBPW444CBC63BGN5 X-Message-ID-Hash: ZIPNDWS7SLIJHBEDVBPW444CBC63BGN5 X-MailFrom: s.sterz@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: instead of hard-coding "proxy.pem" and disable the remove button if no certificate is selected, aligning the behaviour with the js-based ui. Signed-off-by: Shannon Sterz --- src/acme/certificate_list.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/acme/certificate_list.rs b/src/acme/certificate_list.rs index 2553bac..164df1f 100644 --- a/src/acme/certificate_list.rs +++ b/src/acme/certificate_list.rs @@ -123,9 +123,13 @@ impl LoadableComponent for ProxmoxCertificateList { ) .with_child( ConfirmButton::new(tr!("Delete Custom Certificate")) + .disabled(selected_cert.is_none()) .confirm_message(tr!( "Are you sure you want to remove the certificate used for {0}", - "proxy.pem" + selected_cert + .as_ref() + .map(|s| s.filename.as_str()) + .unwrap_or_default(), )) .on_activate({ let link = ctx.link().clone(); -- 2.47.3