public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [RFC PATCH pve-manager 0/2] add reload/upload buttons to iso selector
@ 2026-07-13 11:36 Dominik Csapak
  2026-07-13 11:36 ` [RFC PATCH pve-manager 1/2] ui: iso selector: add 'reload' button Dominik Csapak
  2026-07-13 11:37 ` [RFC PATCH pve-manager 2/2] ui: iso selector: add 'upload' button in the create VM wizard Dominik Csapak
  0 siblings, 2 replies; 3+ messages in thread
From: Dominik Csapak @ 2026-07-13 11:36 UTC (permalink / raw)
  To: pve-devel

It often happens that one forgot to upload an iso before starting the vm
wizard. instead of having to navigate to the storage and upload there,
add an inline upload button to the create wizard.

Using this space, we can add a general 'reload' button which reloads the
storage list as well as the file list for the selected storage.

Sending this as RFC for multiple reasons:
* This shows a modal window over another (upload over wizard), which is
  a pattern we don't usually use. IMO it's fine here since it's a rather
  minor use case, but still.
* Placement of the buttons: I tried with inline buttons as well as
  'triggers', but both have serious disadvantages:
  - inline buttons: don't count to the field width and it's hard with
    extjs' layout to achieve a consistent size for storage and file
    selector
  - triggers: we'd have to handroll the svg/png images (like pmx-clear),
    and i'm not very good with svgs in general. I tried to extract the
    font-awesome icons into standalone svgs, but could not get a result
    that was good enough (for me). Maybe someone else has more luck with
    that? Aside from the icons this has another problem: it makes the
    file selector content very narrow when there are multiple triggers
    and the user might not see what is actually selected.

Dominik Csapak (2):
  ui: iso selector: add 'reload' button
  ui: iso selector: add 'upload' button in the create VM wizard

 www/manager6/form/FileSelector.js    | 12 +++++
 www/manager6/form/IsoSelector.js     | 75 ++++++++++++++++++++++++++++
 www/manager6/form/StorageSelector.js | 11 +++-
 www/manager6/qemu/CDEdit.js          |  1 +
 www/manager6/qemu/OSPanel.js         |  1 +
 5 files changed, 98 insertions(+), 2 deletions(-)

-- 
2.47.3





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-13 11:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-13 11:36 [RFC PATCH pve-manager 0/2] add reload/upload buttons to iso selector Dominik Csapak
2026-07-13 11:36 ` [RFC PATCH pve-manager 1/2] ui: iso selector: add 'reload' button Dominik Csapak
2026-07-13 11:37 ` [RFC PATCH pve-manager 2/2] ui: iso selector: add 'upload' button in the create VM wizard Dominik Csapak

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