[pve-devel] [PATCH v4 manager 2/2] fix #1291: add purge checkbox to VM/CT destroy dialog
Christian Ebner
c.ebner at proxmox.com
Tue Oct 15 13:00:23 CEST 2019
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
version 4:
* no changes since v3
www/manager6/window/SafeDestroy.js | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/www/manager6/window/SafeDestroy.js b/www/manager6/window/SafeDestroy.js
index eb3e6665..ef867deb 100644
--- a/www/manager6/window/SafeDestroy.js
+++ b/www/manager6/window/SafeDestroy.js
@@ -26,6 +26,10 @@ Ext.define('PVE.window.SafeDestroy', {
getParams: function() {
var me = this;
+ var purgeCheckbox = me.lookupReference('purgeCheckbox');
+ if (purgeCheckbox.checked) {
+ me.params.purge = 1;
+ }
if (Ext.Object.isEmpty(me.params)) {
return '';
}
@@ -121,6 +125,14 @@ Ext.define('PVE.window.SafeDestroy', {
labelWidth: 300,
hideTrigger: true,
allowBlank: false
+ },
+ {
+ xtype: 'proxmoxcheckbox',
+ name: 'purge',
+ reference: 'purgeCheckbox',
+ fieldLabel: gettext('Purge'),
+ labelWidth: 300,
+ checked: false
}
]
}
--
2.20.1
More information about the pve-devel
mailing list