]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
safe destroy: remove purge checkbox
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 19 Apr 2021 13:14:35 +0000 (15:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Apr 2021 10:39:44 +0000 (12:39 +0200)
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>
src/window/SafeDestroy.js

index 87f81b774bbfe3646a22a045088ce970a1757584..91e0f2cdbfe8dcaec937e61f846f18f5b725bc0f 100644 (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 + ')';