[pve-devel] [PATCH manager 6/6] ui: node: storage removal: add checkbox for cleaning up storage config

Fabian Ebner f.ebner at proxmox.com
Mon Oct 25 15:47:55 CEST 2021


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 www/manager6/window/SafeDestroyStorage.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/www/manager6/window/SafeDestroyStorage.js b/www/manager6/window/SafeDestroyStorage.js
index 62882f37..660fd35e 100644
--- a/www/manager6/window/SafeDestroyStorage.js
+++ b/www/manager6/window/SafeDestroyStorage.js
@@ -19,12 +19,20 @@ Ext.define('PVE.window.SafeDestroyStorage', {
 		'data-qtip': gettext('Wipe labels and other left-overs'),
 	    },
 	},
+	{
+	    xtype: 'proxmoxcheckbox',
+	    name: 'cleanupConfig',
+	    reference: 'cleanupConfigCheckbox',
+	    boxLabel: gettext('Cleanup Storage Configuration'),
+	    checked: true,
+	},
     ],
 
     getParams: function() {
 	let me = this;
 
 	me.params['cleanup-disks'] = me.lookupReference('wipeDisksCheckbox').checked ? 1 : 0;
+	me.params['cleanup-config'] = me.lookupReference('cleanupConfigCheckbox').checked ? 1 : 0;
 
 	return me.callParent();
     },
-- 
2.30.2






More information about the pve-devel mailing list