ui: storage edit: ensure to set keep-all by default

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-25 14:49:23 +01:00
parent 13a0434066
commit e3022813ec

View File

@ -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)