noficiation: matcher edit: make 'field' an editable combobox
For now with fixed options that are shared between most notification events - later, once we have a notification registry, this should be filled dynamically. Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
parent
5bd3ad4e90
commit
de0cec409a
@ -963,14 +963,23 @@ Ext.define('Proxmox.panel.NotificationMatchRuleSettings', {
|
||||
},
|
||||
{
|
||||
fieldLabel: gettext('Field'),
|
||||
xtype: 'textfield',
|
||||
xtype: 'proxmoxKVComboBox',
|
||||
isFormField: false,
|
||||
submitValue: false,
|
||||
allowBlank: false,
|
||||
editable: true,
|
||||
displayField: 'key',
|
||||
bind: {
|
||||
hidden: '{!typeIsMatchField}',
|
||||
disabled: '{!typeIsMatchField}',
|
||||
value: '{matchFieldField}',
|
||||
},
|
||||
// TODO: Once we have a 'notification registry', we should
|
||||
// retrive those via an API call.
|
||||
comboItems: [
|
||||
['type', ''],
|
||||
['hostname', ''],
|
||||
],
|
||||
},
|
||||
{
|
||||
fieldLabel: gettext('Value'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user