* [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
* applied: [PATCH manager] ui: sdn: fabrics: disable 'Add Node' button when none is selected
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 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2026-05-20 14:14 UTC (permalink / raw)
To: pve-devel, Dominik Csapak
On Wed, 20 May 2026 15:25:40 +0200, Dominik Csapak wrote:
> 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.
Applied, thanks!
[1/1] ui: sdn: fabrics: disable 'Add Node' button when none is selected
commit: fb6d1f14befe631c8a18df1b4725e49d95b32028
^ permalink raw reply [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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox