more in line with our remaining code style

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 www/manager6/qemu/HDEdit.js | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/www/manager6/qemu/HDEdit.js b/www/manager6/qemu/HDEdit.js
index ae7e3fde..bbd4a2c6 100644
--- a/www/manager6/qemu/HDEdit.js
+++ b/www/manager6/qemu/HDEdit.js
@@ -17,21 +17,22 @@ Ext.define('PVE.qemu.HDInputPanel', {
        xclass: 'Ext.app.ViewController',
 
        onControllerChange: function(field) {
+           let me = this;
            var value = field.getValue();
 
            var allowIOthread = value.match(/^(virtio|scsi)/);
-           this.lookup('iothread').setDisabled(!allowIOthread);
+           me.lookup('iothread').setDisabled(!allowIOthread);
            if (!allowIOthread) {
-               this.lookup('iothread').setValue(false);
+               me.lookup('iothread').setValue(false);
            }
 
            var virtio = value.match(/^virtio/);
-           this.lookup('ssd').setDisabled(virtio);
+           me.lookup('ssd').setDisabled(virtio);
            if (virtio) {
-               this.lookup('ssd').setValue(false);
+               me.lookup('ssd').setValue(false);
            }
 
-           this.lookup('scsiController').setVisible(value.match(/^scsi/));
+           me.lookup('scsiController').setVisible(value.match(/^scsi/));
        },
 
        control: {
-- 
2.30.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to