From 2b1f7bb0667e850ae8708c32912807ebdbad79d3 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Mon, 19 Apr 2021 15:14:35 +0200 Subject: [PATCH] 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 --- 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 + ')';