safe destroy: remove purge checkbox

To be replaced by generic additional items specified by the user of the window
or child class. AFAICS there are no existing users of this widget yet, so this
shouldn't break anything.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-04-19 15:14:35 +02:00 committed by Thomas Lamprecht
parent 9531c6594e
commit 2b1f7bb066

View File

@ -18,7 +18,6 @@ Ext.define('Proxmox.window.SafeDestroy', {
config: {
item: {
id: undefined,
purgeable: false,
},
url: undefined,
note: undefined,
@ -28,10 +27,7 @@ Ext.define('Proxmox.window.SafeDestroy', {
getParams: function() {
let me = this;
const purgeCheckbox = me.lookupReference('purgeCheckbox');
if (purgeCheckbox.checked) {
me.params.purge = 1;
}
if (Ext.Object.isEmpty(me.params)) {
return '';
}
@ -128,17 +124,6 @@ Ext.define('Proxmox.window.SafeDestroy', {
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',
@ -198,12 +183,6 @@ Ext.define('Proxmox.window.SafeDestroy', {
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 + ')';