From 6ee8e0917dc35605af8642473e3718562b45ed9f Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 30 Nov 2023 09:49:03 +0100 Subject: [PATCH] ui: fix deleting datastore without 'keep-job-configs' without any default value in the viewModel, the resulting url would be: `?destroy-data=&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 Tested-by: Fiona Ebner --- 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')