[pbs-devel] [PATCH proxmox-backup] ui: fix deleting datastore without 'keep-job-configs'

Dominik Csapak d.csapak at proxmox.com
Thu Nov 30 09:49:03 CET 2023


without any default value in the viewModel, the resulting url would be:

`<id>?destroy-data=<value>&keep-job-configs=`

which is missing the actual value, so add the default

Fixes: e9979a1a ("ui: add 'keep configs' checkbox to datastore removal window")
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/datastore/OptionView.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/datastore/OptionView.js b/www/datastore/OptionView.js
index 3ef4d3d5..6f1be969 100644
--- a/www/datastore/OptionView.js
+++ b/www/datastore/OptionView.js
@@ -10,6 +10,7 @@ Ext.define('PBS.window.SafeDatastoreDestroy', {
     viewModel: {
 	data: {
 	    'destroyData': 0,
+	    'keepJobConfigs': 0,
 	},
 	formulas: {
 	    destroyNote: get => get('destroyData')
-- 
2.30.2





More information about the pbs-devel mailing list