[pve-devel] [PATCH manager 1/2] ui: qemu: eslint fixes
Dominic Jäger
d.jaeger at proxmox.com
Wed May 19 11:14:18 CEST 2021
Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
---
These 2 patches fix the remaining errors for manager6/qemu and manager6/storage
(manager6/lxc is already OK)
www/manager6/qemu/CmdMenu.js | 2 +-
www/manager6/qemu/PCIEdit.js | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/www/manager6/qemu/CmdMenu.js b/www/manager6/qemu/CmdMenu.js
index e312119d..fa75ad82 100644
--- a/www/manager6/qemu/CmdMenu.js
+++ b/www/manager6/qemu/CmdMenu.js
@@ -85,7 +85,7 @@ Ext.define('PVE.qemu.CmdMenu', {
text: gettext('Shutdown'),
iconCls: 'fa fa-fw fa-power-off',
disabled: stopped || suspended,
- handler: () => confirmedVMCommand('shutdown'),
+ handler: () => confirmedVMCommand('shutdown'),
},
{
text: gettext('Stop'),
diff --git a/www/manager6/qemu/PCIEdit.js b/www/manager6/qemu/PCIEdit.js
index 942e8aed..a8e05f2d 100644
--- a/www/manager6/qemu/PCIEdit.js
+++ b/www/manager6/qemu/PCIEdit.js
@@ -124,11 +124,14 @@ Ext.define('PVE.qemu.PCIInputPanel', {
if (iommu !== -1) {
var count = 0;
pcisel.getStore().each(function(record) {
- if (record.data.iommugroup === iommu &&
- record.data.id.substring(0, 5) !== id) {
+ if (
+ record.data.iommugroup === iommu &&
+ record.data.id.substring(0, 5) !== id
+ ) {
count++;
return false;
}
+ return true;
});
var warning = me.down('#iommuwarning');
if (count && !warning) {
--
2.20.1
More information about the pve-devel
mailing list