mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-03 08:38:31 +00:00

Try to be more clear about what those checkboxes do, hopefully reducing potential confusion by (newer) users. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
/*
|
|
* SafeDestroy window with additional checkboxes for removing guests
|
|
*/
|
|
Ext.define('PVE.window.SafeDestroyGuest', {
|
|
extend: 'Proxmox.window.SafeDestroy',
|
|
alias: 'widget.pveSafeDestroyGuest',
|
|
|
|
additionalItems: [
|
|
{
|
|
xtype: 'proxmoxcheckbox',
|
|
name: 'purge',
|
|
reference: 'purgeCheckbox',
|
|
boxLabel: gettext('Purge from job configurations'),
|
|
checked: false,
|
|
autoEl: {
|
|
tag: 'div',
|
|
'data-qtip': gettext('Remove from replication, HA and backup jobs'),
|
|
},
|
|
},
|
|
{
|
|
xtype: 'proxmoxcheckbox',
|
|
name: 'destroyUnreferenced',
|
|
reference: 'destroyUnreferencedCheckbox',
|
|
boxLabel: gettext('Destroy unreferenced disks owned by guest'),
|
|
checked: false,
|
|
autoEl: {
|
|
tag: 'div',
|
|
'data-qtip': gettext('Scan all enabled storages for unreferenced disks and delete them.'),
|
|
},
|
|
},
|
|
],
|
|
|
|
getParams: function() {
|
|
let me = this;
|
|
|
|
const purgeCheckbox = me.lookupReference('purgeCheckbox');
|
|
me.params.purge = purgeCheckbox.checked ? 1 : 0;
|
|
|
|
const destroyUnreferencedCheckbox = me.lookupReference('destroyUnreferencedCheckbox');
|
|
me.params["destroy-unreferenced-disks"] = destroyUnreferencedCheckbox.checked ? 1 : 0;
|
|
|
|
return me.callParent();
|
|
},
|
|
});
|