public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager 2/2] ui: auto-installer: add missing keys for the input panels
Date: Thu, 28 May 2026 11:27:14 +0200	[thread overview]
Message-ID: <20260528092721.1492991-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20260528092721.1492991-1-d.csapak@proxmox.com>

input panels need a key for each field/child. It tries to auto-generate
them, but this generates a warning in debug mode. So just add the
missing keys for the custom children.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 ui/src/remotes/auto_installer/prepared_answer_form.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ui/src/remotes/auto_installer/prepared_answer_form.rs b/ui/src/remotes/auto_installer/prepared_answer_form.rs
index b209eb2c..560503a4 100644
--- a/ui/src/remotes/auto_installer/prepared_answer_form.rs
+++ b/ui/src/remotes/auto_installer/prepared_answer_form.rs
@@ -882,6 +882,7 @@ pub fn render_templating_form(config: &PreparedInstallationConfig) -> yew::Html
         )
         .with_large_custom_child(
             KeyValueList::new()
+                .key("current-value")
                 .value(
                     config
                         .template_counters
@@ -922,6 +923,7 @@ pub fn render_auth_form(
         )
         .with_large_custom_child(
             TokenSelector::new(tokens)
+                .key("authorized-tokens")
                 .selected_keys(config.authorized_tokens.clone())
                 .required(false)
                 .submit_empty(true)
@@ -983,6 +985,7 @@ pub fn render_show_secret_dialog(
     let token = format!("{}:{secret}", token.id);
 
     let copy_token_view = Container::new()
+        .key("copy-token-view")
         .class("pwt-form-grid-col4")
         .with_child(FieldLabel::new(tr!("Token")))
         .with_child(
@@ -1027,6 +1030,7 @@ pub fn render_show_secret_dialog(
     commandline = format!("{commandline} INPUT.iso");
 
     let copy_commandline_view = Container::new()
+        .key("copy-commandline-view")
         .class("pwt-form-grid-col4")
         .with_child(FieldLabel::new(tr!("Command Line")))
         .with_child(
-- 
2.47.3





  reply	other threads:[~2026-05-28  9:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-28  9:27 [PATCH datacenter-manager 1/2] ui: auto-installer: remove stray 'height' property for the command field Dominik Csapak
2026-05-28  9:27 ` Dominik Csapak [this message]
2026-05-28  9:39 ` applied: " Lukas Wagner

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=20260528092721.1492991-2-d.csapak@proxmox.com \
    --to=d.csapak@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal