From c2d24034d5523f79df8c2b7cc1ce7e8895ba6882 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 24 Nov 2020 13:38:50 +0100 Subject: [PATCH] followup code cleanup actually cleaning up the initial state, the last patch was OK as is.. Signed-off-by: Thomas Lamprecht --- www/manager6/storage/Base.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/www/manager6/storage/Base.js b/www/manager6/storage/Base.js index 21ab3a41..6113743d 100644 --- a/www/manager6/storage/Base.js +++ b/www/manager6/storage/Base.js @@ -65,18 +65,14 @@ Ext.define('PVE.panel.StoragePruneInputPanel', { onGetValues: function(formValues) { delete formValues.delete; let retention = PVE.Parser.printPropertyString(formValues) - // always delete old 'maxfiles', we map it to keep-last on edit win load if (retention === '') { if (this.isCreate) { 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 }; if (!this.isCreate) {