]> git.proxmox.com Git - pve-manager.git/blame - www/manager6/window/SafeDestroyStorage.js
ui: guest import: add text for guest-is-running warning
[pve-manager.git] / www / manager6 / window / SafeDestroyStorage.js
CommitLineData
bccfb43f
FE
1/*
2 * SafeDestroy window with additional checkboxes for removing a storage on the disk level.
3 */
4Ext.define('PVE.window.SafeDestroyStorage', {
5 extend: 'Proxmox.window.SafeDestroy',
6 alias: 'widget.pveSafeDestroyStorage',
7
8 showProgress: true,
9
10 additionalItems: [
11 {
12 xtype: 'proxmoxcheckbox',
13 name: 'wipeDisks',
14 reference: 'wipeDisksCheckbox',
15 boxLabel: gettext('Cleanup Disks'),
16 checked: true,
17 autoEl: {
18 tag: 'div',
19 'data-qtip': gettext('Wipe labels and other left-overs'),
20 },
21 },
eedb35da
FE
22 {
23 xtype: 'proxmoxcheckbox',
24 name: 'cleanupConfig',
25 reference: 'cleanupConfigCheckbox',
26 boxLabel: gettext('Cleanup Storage Configuration'),
27 checked: true,
28 },
bccfb43f
FE
29 ],
30
31 getParams: function() {
32 let me = this;
33
34 me.params['cleanup-disks'] = me.lookupReference('wipeDisksCheckbox').checked ? 1 : 0;
eedb35da 35 me.params['cleanup-config'] = me.lookupReference('cleanupConfigCheckbox').checked ? 1 : 0;
bccfb43f
FE
36
37 return me.callParent();
38 },
39});