]>
git.proxmox.com Git - proxmox-widget-toolkit.git/blob - src/form/ACME.js
1 Ext
.define('Proxmox.form.ACMEApiSelector', {
2 extend
: 'Ext.form.field.ComboBox',
3 alias
: 'widget.pmxACMEApiSelector',
5 fieldLabel
: gettext('DNS API'),
10 model
: 'proxmox-acme-challenges',
22 getSchema: function() {
24 let val
= me
.getValue();
26 let record
= me
.getStore().findRecord('id', val
, 0, false, true, true);
28 return record
.data
.schema
;
34 initComponent: function() {
42 me
.getStore().getProxy().setUrl(me
.url
);
46 Ext
.define('Proxmox.form.ACMEAccountSelector', {
47 extend
: 'Ext.form.field.ComboBox',
48 alias
: 'widget.pmxACMEAccountSelector',
54 model
: 'proxmox-acme-accounts',
65 return this.getStore().getData().length
=== 0;
68 initComponent: function() {
76 me
.getStore().getProxy().setUrl(me
.url
);
80 Ext
.define('Proxmox.form.ACMEPluginSelector', {
81 extend
: 'Ext.form.field.ComboBox',
82 alias
: 'widget.pmxACMEPluginSelector',
84 fieldLabel
: gettext('Plugin'),
85 displayField
: 'plugin',
89 model
: 'proxmox-acme-plugins',
91 filters
: item
=> item
.data
.type
=== 'dns',
99 initComponent: function() {
103 throw "no url given";
107 me
.getStore().getProxy().setUrl(me
.url
);