all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH manager] ui: sdn: fabrics: disable 'Add Node' button when none is selected
@ 2026-05-20 13:25 Dominik Csapak
  2026-05-20 14:14 ` applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2026-05-20 13:25 UTC (permalink / raw)
  To: pve-devel

The button gets enabled when the first fabric is selected, but it could
happen it stayed enabled when e.g. the fabric was deleted. Fix that by
also disabling the button when nothing is selected.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 www/manager6/sdn/FabricsView.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager6/sdn/FabricsView.js b/www/manager6/sdn/FabricsView.js
index 9a802985..4676266d 100644
--- a/www/manager6/sdn/FabricsView.js
+++ b/www/manager6/sdn/FabricsView.js
@@ -180,6 +180,7 @@ Ext.define('PVE.sdn.Fabric.View', {
             let selection = me.view.getSelection();
 
             if (selection.length === 0) {
+                addNodeButton.setDisabled(true);
                 return;
             }
 
-- 
2.47.3





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

end of thread, other threads:[~2026-05-20 14:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-20 13:25 [PATCH manager] ui: sdn: fabrics: disable 'Add Node' button when none is selected Dominik Csapak
2026-05-20 14:14 ` applied: " Thomas Lamprecht

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