[pve-devel] [PATCH proxmox-widget-toolkit 1/7] safe destroy: remove purge checkbox

Fabian Ebner f.ebner at proxmox.com
Mon Apr 19 15:14:35 CEST 2021


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 at proxmox.com>
---
 src/window/SafeDestroy.js | 23 +----------------------
 1 file changed, 1 insertion(+), 22 deletions(-)

diff --git a/src/window/SafeDestroy.js b/src/window/SafeDestroy.js
index 87f81b7..91e0f2c 100644
--- a/src/window/SafeDestroy.js
+++ b/src/window/SafeDestroy.js
@@ -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 + ')';
-- 
2.20.1






More information about the pve-devel mailing list