mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-03 20:02:16 +00:00

filter the plugins by type === 'dns' and add a convenience method for ACMEAccountSelector to check if there are any accounts Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
20 lines
425 B
JavaScript
20 lines
425 B
JavaScript
Ext.define('PVE.form.ACMEPluginSelector', {
|
|
extend: 'Ext.form.field.ComboBox',
|
|
alias: 'widget.pveACMEPluginSelector',
|
|
|
|
fieldLabel: gettext('Plugin'),
|
|
displayField: 'plugin',
|
|
valueField: 'plugin',
|
|
|
|
store: {
|
|
model: 'pve-acme-plugins',
|
|
autoLoad: true,
|
|
filters: item => item.data.type === 'dns',
|
|
},
|
|
|
|
triggerAction: 'all',
|
|
queryMode: 'local',
|
|
allowBlank: false,
|
|
editable: false,
|
|
});
|