config: {
item: {
id: undefined,
- purgeable: false,
},
url: undefined,
note: undefined,
getParams: function() {
let me = this;
- const purgeCheckbox = me.lookupReference('purgeCheckbox');
- if (purgeCheckbox.checked) {
- me.params.purge = 1;
- }
+
if (Ext.Object.isEmpty(me.params)) {
return '';
}
hideTrigger: true,
allowBlank: false,
},
- {
- xtype: 'proxmoxcheckbox',
- name: 'purge',
- reference: 'purgeCheckbox',
- boxLabel: gettext('Purge'),
- checked: false,
- autoEl: {
- tag: 'div',
- 'data-qtip': gettext('Remove from replication and backup jobs'),
- },
- },
{
xtype: 'container',
reference: 'noteContainer',
throw "no task name specified";
}
- if (!item.purgeable) {
- const purgeCheckbox = me.lookupReference('purgeCheckbox');
- purgeCheckbox.setDisabled(true);
- purgeCheckbox.setHidden(true);
- }
-
const confirmField = me.lookupReference('confirmField');
msg = gettext('Please enter the ID to confirm') +
' (' + item.id + ')';