mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-10-25 13:35:41 +00:00
webhook edit: use type in add button text
so one can more easily see what gets added. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
3052c4dfc8
commit
b0eafb68a9
@ -70,6 +70,7 @@ Ext.define('Proxmox.panel.WebhookEditPanel', {
|
||||
xtype: 'pmxWebhookKeyValueList',
|
||||
name: 'header',
|
||||
fieldLabel: gettext('Headers'),
|
||||
subject: gettext('Header'),
|
||||
maskValues: false,
|
||||
cbind: {
|
||||
isCreate: '{isCreate}',
|
||||
@ -91,6 +92,7 @@ Ext.define('Proxmox.panel.WebhookEditPanel', {
|
||||
xtype: 'pmxWebhookKeyValueList',
|
||||
name: 'secret',
|
||||
fieldLabel: gettext('Secrets'),
|
||||
subject: gettext('Secret'),
|
||||
maskValues: true,
|
||||
cbind: {
|
||||
isCreate: '{isCreate}',
|
||||
@ -168,6 +170,9 @@ Ext.define('Proxmox.form.WebhookKeyValueList', {
|
||||
// override for column header
|
||||
fieldTitle: gettext('Item'),
|
||||
|
||||
// the text for a single element, used for the add button
|
||||
subject: undefined,
|
||||
|
||||
// will be applied to the textfields
|
||||
maskRe: undefined,
|
||||
|
||||
@ -391,7 +396,7 @@ Ext.define('Proxmox.form.WebhookKeyValueList', {
|
||||
},
|
||||
{
|
||||
xtype: 'button',
|
||||
text: gettext('Add'),
|
||||
text: me.subject ? Ext.String.format(gettext('Add {0}'), me.subject) : gettext('Add'),
|
||||
iconCls: 'fa fa-plus-circle',
|
||||
handler: 'addLine',
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user