From f3d7d0023c297de0cefb50c40b438a83ae048e73 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 24 Jul 2020 19:29:28 +0200 Subject: [PATCH] followup: use true as inputValue and normalize original value comparison, just to be sure. Signed-off-by: Thomas Lamprecht --- www/manager6/storage/PBSEdit.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/manager6/storage/PBSEdit.js b/www/manager6/storage/PBSEdit.js index 44d827f5..34c981e3 100644 --- a/www/manager6/storage/PBSEdit.js +++ b/www/manager6/storage/PBSEdit.js @@ -2,6 +2,8 @@ Ext.define('Proxmox.form.PBSEncryptionCheckbox', { extend: 'Ext.form.field.Checkbox', xtype: 'pbsEncryptionCheckbox', + inputValue: true, + viewModel: { data: { value: null, @@ -44,7 +46,7 @@ Ext.define('Proxmox.form.PBSEncryptionCheckbox', { if (!me.isCreate) { if (val === null) { return { 'delete': 'encryption-key' }; - } else if (val && val !== me.originalValue) { + } else if (val && !!val !== !!me.originalValue) { return { 'encryption-key': 'autogen' }; } } else if (val) {