ui: backup window: also reset removal fields when defaults API call fails

to avoid showing settings for the wrong storage.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-05-07 08:56:52 +02:00 committed by Thomas Lamprecht
parent 170f8fb4e4
commit 01a69af40f

View File

@ -141,6 +141,11 @@ Ext.define('PVE.window.Backup', {
}, },
failure: function(response, opts) { failure: function(response, opts) {
initialDefaults = true; initialDefaults = true;
removeCheckbox.setHidden(true);
removeCheckbox.setValue(false);
pruneSettings.forEach(field => field.reset());
Ext.Msg.alert(gettext('Error'), response.htmlStatus); Ext.Msg.alert(gettext('Error'), response.htmlStatus);
}, },
}); });