copy form/BusTypeSelector.js from manager to manager5
This commit is contained in:
parent
872b15d946
commit
951b2da2e9
24
www/manager5/form/BusTypeSelector.js
Normal file
24
www/manager5/form/BusTypeSelector.js
Normal file
@ -0,0 +1,24 @@
|
||||
Ext.define('PVE.form.BusTypeSelector', {
|
||||
extend: 'PVE.form.KVComboBox',
|
||||
alias: ['widget.PVE.form.BusTypeSelector'],
|
||||
|
||||
noVirtIO: false,
|
||||
|
||||
noScsi: false,
|
||||
|
||||
initComponent: function() {
|
||||
var me = this;
|
||||
|
||||
me.data = [['ide', 'IDE'], ['sata', 'SATA']];
|
||||
|
||||
if (!me.noVirtIO) {
|
||||
me.data.push(['virtio', 'VIRTIO']);
|
||||
}
|
||||
|
||||
if (!me.noScsi) {
|
||||
me.data.push(['scsi', 'SCSI']);
|
||||
}
|
||||
|
||||
me.callParent();
|
||||
}
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user