]>
Commit | Line | Data |
---|---|---|
803053da FE |
1 | /* |
2 | * SafeDestroy window with additional checkboxes for removing guests | |
3 | */ | |
4 | Ext.define('PVE.window.SafeDestroyGuest', { | |
5 | extend: 'Proxmox.window.SafeDestroy', | |
6 | alias: 'proxmoxSafeDestroy', | |
7 | ||
8 | additionalItems: [ | |
9 | { | |
10 | xtype: 'proxmoxcheckbox', | |
11 | name: 'purge', | |
12 | reference: 'purgeCheckbox', | |
13 | boxLabel: gettext('Purge'), | |
14 | checked: false, | |
15 | autoEl: { | |
16 | tag: 'div', | |
17 | 'data-qtip': gettext('Remove from replication and backup jobs'), | |
18 | }, | |
19 | }, | |
20 | ], | |
21 | ||
22 | getParams: function() { | |
23 | let me = this; | |
24 | ||
25 | const purgeCheckbox = me.lookupReference('purgeCheckbox'); | |
26 | me.params.purge = purgeCheckbox.checked ? 1 : 0; | |
27 | ||
28 | return me.callParent(); | |
29 | }, | |
30 | }); |