mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 23:20:24 +00:00
ui: qemu/HDEdit: use me instead of this
more in line with our remaining code style Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
7d749da091
commit
ef82a0b1a7
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user