mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 13:36:37 +00:00
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:
parent
170f8fb4e4
commit
01a69af40f
@ -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);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user