5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-03-08 04:58:30 +03:00
Dominik Csapak 169ddf541d ui: prune: fix sending invalid parameters
the prune input panel is used in various contexts (add/editing a
prunejob, adding a datastore, executing a prune). These different api
calls don't all take the same parameters, so we have to correctly set
the `isCreate` to not send a `delete` paramter for those request if
there was an empty field.

Also set 'max-depth:0' only when recursive was not set *and* we can
set 'recursive', because for creating a datastore that is not supported
by the api, and for the prune job editing we override the whole
onGetValues anyway so that's not an issue there.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2024-03-07 10:30:40 +01:00
..
2022-05-30 13:58:43 +02:00
2022-05-14 18:47:13 +02:00
2023-11-29 18:32:07 +01:00