mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-10-25 15:25:25 +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',
|
xtype: 'pmxWebhookKeyValueList',
|
||||||
name: 'header',
|
name: 'header',
|
||||||
fieldLabel: gettext('Headers'),
|
fieldLabel: gettext('Headers'),
|
||||||
|
subject: gettext('Header'),
|
||||||
maskValues: false,
|
maskValues: false,
|
||||||
cbind: {
|
cbind: {
|
||||||
isCreate: '{isCreate}',
|
isCreate: '{isCreate}',
|
||||||
@ -91,6 +92,7 @@ Ext.define('Proxmox.panel.WebhookEditPanel', {
|
|||||||
xtype: 'pmxWebhookKeyValueList',
|
xtype: 'pmxWebhookKeyValueList',
|
||||||
name: 'secret',
|
name: 'secret',
|
||||||
fieldLabel: gettext('Secrets'),
|
fieldLabel: gettext('Secrets'),
|
||||||
|
subject: gettext('Secret'),
|
||||||
maskValues: true,
|
maskValues: true,
|
||||||
cbind: {
|
cbind: {
|
||||||
isCreate: '{isCreate}',
|
isCreate: '{isCreate}',
|
||||||
@ -168,6 +170,9 @@ Ext.define('Proxmox.form.WebhookKeyValueList', {
|
|||||||
// override for column header
|
// override for column header
|
||||||
fieldTitle: gettext('Item'),
|
fieldTitle: gettext('Item'),
|
||||||
|
|
||||||
|
// the text for a single element, used for the add button
|
||||||
|
subject: undefined,
|
||||||
|
|
||||||
// will be applied to the textfields
|
// will be applied to the textfields
|
||||||
maskRe: undefined,
|
maskRe: undefined,
|
||||||
|
|
||||||
@ -391,7 +396,7 @@ Ext.define('Proxmox.form.WebhookKeyValueList', {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
xtype: 'button',
|
xtype: 'button',
|
||||||
text: gettext('Add'),
|
text: me.subject ? Ext.String.format(gettext('Add {0}'), me.subject) : gettext('Add'),
|
||||||
iconCls: 'fa fa-plus-circle',
|
iconCls: 'fa fa-plus-circle',
|
||||||
handler: 'addLine',
|
handler: 'addLine',
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user