[pve-devel] [PATCH manager 1/1] ui: cloudinit: align default value for package upgrades with backend again
Fiona Ebner
f.ebner at proxmox.com
Wed Jun 21 12:04:33 CEST 2023
The default in Proxmox VE 7 was true and it was decided to keep that
and avoid a breaking change.
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
www/manager6/qemu/CloudInit.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/manager6/qemu/CloudInit.js b/www/manager6/qemu/CloudInit.js
index 0e06d962..03d06d9c 100644
--- a/www/manager6/qemu/CloudInit.js
+++ b/www/manager6/qemu/CloudInit.js
@@ -290,7 +290,7 @@ Ext.define('PVE.qemu.CloudInit', {
header: gettext('Upgrade packages'),
iconCls: 'fa fa-archive',
renderer: Proxmox.Utils.format_boolean,
- defaultValue: '',
+ defaultValue: 1,
editor: {
xtype: 'proxmoxWindowEdit',
subject: gettext('Upgrade packages on boot'),
@@ -298,7 +298,7 @@ Ext.define('PVE.qemu.CloudInit', {
xtype: 'proxmoxcheckbox',
name: 'ciupgrade',
uncheckedValue: 0,
- defaultValue: 0,
+ value: 1, // serves as default value, using defaultValue is not enough
fieldLabel: gettext('Upgrade packages'),
labelWidth: 140,
},
--
2.39.2
More information about the pve-devel
mailing list