copy form/BusTypeSelector.js from manager to manager5

This commit is contained in:
Dietmar Maurer 2015-07-03 11:29:11 +02:00
parent 872b15d946
commit 951b2da2e9

View 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();
}
});