mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 19:41:44 +00:00
ui: storage edit: avoid returning prune values if unsupported
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
5865b59747
commit
a55b3b717f
@ -65,6 +65,9 @@ Ext.define('PVE.panel.StoragePruneInputPanel', {
|
|||||||
keepLastEmptyText: gettext('1'),
|
keepLastEmptyText: gettext('1'),
|
||||||
|
|
||||||
onGetValues: function(formValues) {
|
onGetValues: function(formValues) {
|
||||||
|
if (this.needMask) { // isMasked() may not yet be true if not rendered once
|
||||||
|
return {};
|
||||||
|
}
|
||||||
delete formValues.delete;
|
delete formValues.delete;
|
||||||
let retention = PVE.Parser.printPropertyString(formValues)
|
let retention = PVE.Parser.printPropertyString(formValues)
|
||||||
if (retention === '') {
|
if (retention === '') {
|
||||||
|
Loading…
Reference in New Issue
Block a user