[pve-devel] applied: [PATCH manager] ui: storage edit: ensure to set keep-all by default

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Nov 25 14:49:40 CET 2020


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 www/manager6/storage/Base.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/manager6/storage/Base.js b/www/manager6/storage/Base.js
index 70e18a81..13ba5b7b 100644
--- a/www/manager6/storage/Base.js
+++ b/www/manager6/storage/Base.js
@@ -67,6 +67,8 @@ Ext.define('PVE.panel.StoragePruneInputPanel', {
     onGetValues: function(formValues) {
 	if (this.needMask) { // isMasked() may not yet be true if not rendered once
 	    return {};
+	} else if (this.isCreate && !this.rendered) {
+	    return { 'prune-backups': 'keep-all=1' };
 	}
 	delete formValues.delete;
 	let retention = PVE.Parser.printPropertyString(formValues)
-- 
2.20.1






More information about the pve-devel mailing list