ui: storage edit: avoid returning prune values if unsupported

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-25 13:15:19 +01:00
parent 5865b59747
commit a55b3b717f

View File

@ -65,6 +65,9 @@ Ext.define('PVE.panel.StoragePruneInputPanel', {
keepLastEmptyText: gettext('1'),
onGetValues: function(formValues) {
if (this.needMask) { // isMasked() may not yet be true if not rendered once
return {};
}
delete formValues.delete;
let retention = PVE.Parser.printPropertyString(formValues)
if (retention === '') {