all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Elias Huhsovitz <e.huhsovitz@proxmox.com>, pve-devel@lists.proxmox.com
Subject: Re: [PATCH manager] ui: qemu: rename button label 'Edit' to 'Attach' for unused disks
Date: Fri, 30 Oct 2026 17:37:43 +0100	[thread overview]
Message-ID: <71f52e99-cd27-4eeb-afb5-a4370e0fc8ed@proxmox.com> (raw)
In-Reply-To: <20261030124235.124337-1-e.huhsovitz@proxmox.com>

Am 30.10.26 um 13:43 schrieb Elias Huhsovitz:
> Currently, adding an unused (detached) disk requires the user to select
> the disk and click the generic "Edit" button. This is confusing,
> because: (1) The "Edit" label does not implicitly convey the action of
> adding/attaching the disk. (2) The action to make a disk unused is
> explicitly labeled "Detach", so a user expects a contrary "Attach"
> button.
> 
> Harmonize the UI terminology by dynamically changing the "Edit" button
> label to "Attach" when an unused disk is selected. This mirrors the
> existing behavior of the "Remove" button, which changes to "Detach" for
> used disks.

nice small UX polish, I like those a lot!


> To prevent the toolbar from jittering when switching between labels of
> different lengths, apply the same maximum-width calculation hack on
> render that is already used for the remove button.

We have this a few times - as you probably figured yourself, seeing that
you copied over the same comment block. After a few time the ROI of adding
a common impl grows super-linear, so always worth evaluating if one should
also do that upfront. Here that actually happened already, I factored out
the core logic as a small Proxmox.button.AltText (proxmoxAltTextButton)
component in proxmox-widget-toolkit a while ago. Please use that here, and
potentially also move other existing handrolled use sites over to that too in
a separate clean-up commit to avoid that another one replicates them again
manually by stumbling upon such a handrolled commit.





      reply	other threads:[~2026-10-30 16:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30 12:42 [PATCH manager] ui: qemu: rename button label 'Edit' to 'Attach' for unused disks Elias Huhsovitz
2026-10-30 16:37 ` Thomas Lamprecht [this message]

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=71f52e99-cd27-4eeb-afb5-a4370e0fc8ed@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=e.huhsovitz@proxmox.com \
    --cc=pve-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal