]> git.proxmox.com Git - pve-manager.git/blame - www/manager6/window/SafeDestroyGuest.js
ui: notes: add empty text with a hint that markdown is supported
[pve-manager.git] / www / manager6 / window / SafeDestroyGuest.js
CommitLineData
803053da
FE
1/*
2 * SafeDestroy window with additional checkboxes for removing guests
3 */
4Ext.define('PVE.window.SafeDestroyGuest', {
5 extend: 'Proxmox.window.SafeDestroy',
ff89c79e 6 alias: 'widget.pveSafeDestroyGuest',
803053da
FE
7
8 additionalItems: [
9 {
10 xtype: 'proxmoxcheckbox',
11 name: 'purge',
12 reference: 'purgeCheckbox',
b9889345 13 boxLabel: gettext('Purge from job configurations'),
803053da
FE
14 checked: false,
15 autoEl: {
16 tag: 'div',
b9889345 17 'data-qtip': gettext('Remove from replication, HA and backup jobs'),
803053da
FE
18 },
19 },
94d2359b
FE
20 {
21 xtype: 'proxmoxcheckbox',
22 name: 'destroyUnreferenced',
23 reference: 'destroyUnreferencedCheckbox',
b9889345 24 boxLabel: gettext('Destroy unreferenced disks owned by guest'),
94d2359b
FE
25 checked: false,
26 autoEl: {
27 tag: 'div',
b9889345 28 'data-qtip': gettext('Scan all enabled storages for unreferenced disks and delete them.'),
94d2359b
FE
29 },
30 },
803053da
FE
31 ],
32
33 getParams: function() {
34 let me = this;
35
36 const purgeCheckbox = me.lookupReference('purgeCheckbox');
37 me.params.purge = purgeCheckbox.checked ? 1 : 0;
38
94d2359b
FE
39 const destroyUnreferencedCheckbox = me.lookupReference('destroyUnreferencedCheckbox');
40 me.params["destroy-unreferenced-disks"] = destroyUnreferencedCheckbox.checked ? 1 : 0;
41
803053da
FE
42 return me.callParent();
43 },
44});