[pve-devel] [PATCH manager 5/7] ui: qemu/HardwareView: change heuristic perms to const

Aaron Lauterer a.lauterer at proxmox.com
Mon Feb 1 15:21:29 CET 2021


Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
 www/manager6/qemu/HardwareView.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js
index 213a946f..80d6eec1 100644
--- a/www/manager6/qemu/HardwareView.js
+++ b/www/manager6/qemu/HardwareView.js
@@ -558,9 +558,9 @@ Ext.define('PVE.qemu.HardwareView', {
 	    });
 
 	    // heuristic only for disabling some stuff, the backend has the final word.
-	    var noSysConsolePerm = !caps.nodes['Sys.Console'];
-	    var noVMConfigHWTypePerm = !caps.vms['VM.Config.HWType'];
-	    var noVMConfigNetPerm = !caps.vms['VM.Config.Network'];
+	    const noSysConsolePerm = !caps.nodes['Sys.Console'];
+	    const noVMConfigHWTypePerm = !caps.vms['VM.Config.HWType'];
+	    const noVMConfigNetPerm = !caps.vms['VM.Config.Network'];
 
 
 	    me.down('#addusb').setDisabled(noSysConsolePerm || isAtLimit('usb'));
-- 
2.20.1





More information about the pve-devel mailing list