From: Aaron Lauterer Date: Mon, 1 Feb 2021 14:21:29 +0000 (+0100) Subject: ui: qemu/HardwareView: change heuristic perms to const X-Git-Url: https://git.proxmox.com/?p=pve-manager.git;a=commitdiff_plain;h=66abfe6a751db7fc36fa440efced62057998a31c ui: qemu/HardwareView: change heuristic perms to const Signed-off-by: Aaron Lauterer --- diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js index 51c77246..26591e62 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'));