mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-16 07:14:02 +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',
|
xclass: 'Ext.app.ViewController',
|
||||||
|
|
||||||
onControllerChange: function(field) {
|
onControllerChange: function(field) {
|
||||||
|
let me = this;
|
||||||
var value = field.getValue();
|
var value = field.getValue();
|
||||||
|
|
||||||
var allowIOthread = value.match(/^(virtio|scsi)/);
|
var allowIOthread = value.match(/^(virtio|scsi)/);
|
||||||
this.lookup('iothread').setDisabled(!allowIOthread);
|
me.lookup('iothread').setDisabled(!allowIOthread);
|
||||||
if (!allowIOthread) {
|
if (!allowIOthread) {
|
||||||
this.lookup('iothread').setValue(false);
|
me.lookup('iothread').setValue(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
var virtio = value.match(/^virtio/);
|
var virtio = value.match(/^virtio/);
|
||||||
this.lookup('ssd').setDisabled(virtio);
|
me.lookup('ssd').setDisabled(virtio);
|
||||||
if (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: {
|
control: {
|
||||||
|
Loading…
Reference in New Issue
Block a user