mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 12:56:48 +00:00
followup code cleanup
actually cleaning up the initial state, the last patch was OK as is.. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
93489d898b
commit
c2d24034d5
@ -65,18 +65,14 @@ Ext.define('PVE.panel.StoragePruneInputPanel', {
|
|||||||
onGetValues: function(formValues) {
|
onGetValues: function(formValues) {
|
||||||
delete formValues.delete;
|
delete formValues.delete;
|
||||||
let retention = PVE.Parser.printPropertyString(formValues)
|
let retention = PVE.Parser.printPropertyString(formValues)
|
||||||
// always delete old 'maxfiles', we map it to keep-last on edit win load
|
|
||||||
if (retention === '') {
|
if (retention === '') {
|
||||||
if (this.isCreate) {
|
if (this.isCreate) {
|
||||||
return {};
|
return {};
|
||||||
} else {
|
|
||||||
return {
|
|
||||||
delete: [
|
|
||||||
'prune-backups',
|
|
||||||
'maxfiles',
|
|
||||||
],
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
// always delete old 'maxfiles' on edit, we map it to keep-last on window load
|
||||||
|
return {
|
||||||
|
delete: ['prune-backups','maxfiles'],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
let options = { 'prune-backups': retention };
|
let options = { 'prune-backups': retention };
|
||||||
if (!this.isCreate) {
|
if (!this.isCreate) {
|
||||||
|
Loading…
Reference in New Issue
Block a user