[pve-devel] [PATCH widget-toolkit 5/5] webhook edit: display validity for added key/value fields

Dominik Csapak d.csapak at proxmox.com
Tue Nov 12 15:41:56 CET 2024


by calling 'isValid()' once the widget is attached to the grid

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/panel/WebhookEditPanel.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/panel/WebhookEditPanel.js b/src/panel/WebhookEditPanel.js
index 69a38f5..ca99333 100644
--- a/src/panel/WebhookEditPanel.js
+++ b/src/panel/WebhookEditPanel.js
@@ -362,6 +362,9 @@ Ext.define('Proxmox.form.WebhookKeyValueList', {
 				change: 'itemChange',
 			    },
 			},
+			onWidgetAttach: function(_col, widget) {
+			    widget.isValid();
+			},
 			flex: 1,
 		    },
 		    {
@@ -383,6 +386,9 @@ Ext.define('Proxmox.form.WebhookKeyValueList', {
 				emptyText: '{record.emptyText}',
 			    },
 			},
+			onWidgetAttach: function(_col, widget) {
+			    widget.isValid();
+			},
 			flex: 1,
 		    },
 		    {
-- 
2.39.5





More information about the pve-devel mailing list