* [pve-devel] [PATCH manager 0/2] improve UX in resource edit dialog
@ 2025-09-19 15:33 Michael Köppl
2025-09-19 15:33 ` [pve-devel] [PATCH manager 1/2] ui: ha: remove focus from VM/CT dropdown in resource edit window Michael Köppl
2025-09-19 15:33 ` [pve-devel] [PATCH manager 2/2] ui: ha: do not allow an empty " Michael Köppl
0 siblings, 2 replies; 3+ messages in thread
From: Michael Köppl @ 2025-09-19 15:33 UTC (permalink / raw)
To: pve-devel
The first patch fixes an annoyance with the resource edit dialog where
the dropdown text field would automatically be focused upon opening the
dialog and would hide the dialog behind the dropdown. To avoid this, the
defaultFocus is turned off.
The second patch also changes this input field to not allow blank
inputs, giving users better visual feedback.
pve-manager:
Michael Köppl (2):
ui: ha: remove focus from VM/CT dropdown in resource edit window
ui: ha: do not allow an empty VM/CT dropdown in resource edit window
www/manager6/ha/ResourceEdit.js | 2 ++
1 file changed, 2 insertions(+)
Summary over all repositories:
1 files changed, 2 insertions(+), 0 deletions(-)
--
Generated by git-murpp 0.8.0
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [pve-devel] [PATCH manager 1/2] ui: ha: remove focus from VM/CT dropdown in resource edit window
2025-09-19 15:33 [pve-devel] [PATCH manager 0/2] improve UX in resource edit dialog Michael Köppl
@ 2025-09-19 15:33 ` Michael Köppl
2025-09-19 15:33 ` [pve-devel] [PATCH manager 2/2] ui: ha: do not allow an empty " Michael Köppl
1 sibling, 0 replies; 3+ messages in thread
From: Michael Köppl @ 2025-09-19 15:33 UTC (permalink / raw)
To: pve-devel
Signed-off-by: Michael Köppl <m.koeppl@proxmox.com>
---
www/manager6/ha/ResourceEdit.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/manager6/ha/ResourceEdit.js b/www/manager6/ha/ResourceEdit.js
index 428672a82..18ed166ad 100644
--- a/www/manager6/ha/ResourceEdit.js
+++ b/www/manager6/ha/ResourceEdit.js
@@ -165,6 +165,7 @@ Ext.define('PVE.ha.VMResourceEdit', {
vmid: undefined,
guestType: undefined,
isCreate: undefined,
+ defaultFocus: undefined,
initComponent: function () {
var me = this;
--
2.47.3
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [pve-devel] [PATCH manager 2/2] ui: ha: do not allow an empty VM/CT dropdown in resource edit window
2025-09-19 15:33 [pve-devel] [PATCH manager 0/2] improve UX in resource edit dialog Michael Köppl
2025-09-19 15:33 ` [pve-devel] [PATCH manager 1/2] ui: ha: remove focus from VM/CT dropdown in resource edit window Michael Köppl
@ 2025-09-19 15:33 ` Michael Köppl
1 sibling, 0 replies; 3+ messages in thread
From: Michael Köppl @ 2025-09-19 15:33 UTC (permalink / raw)
To: pve-devel
This does not only improve visual feedback to the user in the form of
red highlighting, but also disables the "Add" button while the field is
still empty.
Signed-off-by: Michael Köppl <m.koeppl@proxmox.com>
---
www/manager6/ha/ResourceEdit.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/manager6/ha/ResourceEdit.js b/www/manager6/ha/ResourceEdit.js
index 18ed166ad..a4f53dad4 100644
--- a/www/manager6/ha/ResourceEdit.js
+++ b/www/manager6/ha/ResourceEdit.js
@@ -86,6 +86,7 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
fieldLabel: me.vmid && me.guestType === 'ct' ? 'CT' : 'VM',
value: me.vmid,
store: vmidStore,
+ allowBlank: false,
validateExists: true,
},
{
--
2.47.3
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-19 15:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-19 15:33 [pve-devel] [PATCH manager 0/2] improve UX in resource edit dialog Michael Köppl
2025-09-19 15:33 ` [pve-devel] [PATCH manager 1/2] ui: ha: remove focus from VM/CT dropdown in resource edit window Michael Köppl
2025-09-19 15:33 ` [pve-devel] [PATCH manager 2/2] ui: ha: do not allow an empty " Michael Köppl
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.