2 * SafeDestroy window with additional checkboxes for removing guests
4 Ext
.define('PVE.window.SafeDestroyGuest', {
5 extend
: 'Proxmox.window.SafeDestroy',
6 alias
: 'widget.pveSafeDestroyGuest',
10 xtype
: 'proxmoxcheckbox',
12 reference
: 'purgeCheckbox',
13 boxLabel
: gettext('Purge from job configurations'),
17 'data-qtip': gettext('Remove from replication, HA and backup jobs'),
21 xtype
: 'proxmoxcheckbox',
22 name
: 'destroyUnreferenced',
23 reference
: 'destroyUnreferencedCheckbox',
24 boxLabel
: gettext('Destroy unreferenced disks owned by guest'),
28 'data-qtip': gettext('Scan all enabled storages for unreferenced disks and delete them.'),
33 note
: gettext('Referenced disks will always be destroyed.'),
35 getParams: function() {
38 const purgeCheckbox
= me
.lookupReference('purgeCheckbox');
39 me
.params
.purge
= purgeCheckbox
.checked
? 1 : 0;
41 const destroyUnreferencedCheckbox
= me
.lookupReference('destroyUnreferencedCheckbox');
42 me
.params
["destroy-unreferenced-disks"] = destroyUnreferencedCheckbox
.checked
? 1 : 0;
44 return me
.callParent();