From e84f80271ddd9e09dab509691e7f12c8ba38a21a Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 12 Nov 2024 15:41:56 +0100 Subject: [PATCH] webhook edit: display validity for added key/value fields by calling 'isValid()' once the widget is attached to the grid Signed-off-by: Dominik Csapak --- 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, }, {