Commit 7ac738ea authored by Dietmar Maurer's avatar Dietmar Maurer

use combobox for iscsiprovider

parent 45ae5d82
......@@ -54,6 +54,7 @@ JSSRC= \
form/CacheTypeSelector.js \
form/SnapshotSelector.js \
form/ContentTypeSelector.js \
form/iScsiProviderSelector.js \
form/DayOfWeekSelector.js \
form/BackupModeSelector.js \
form/ScsiHwSelector.js \
......
Ext.define('PVE.form.iScsiProviderSelector', {
extend: 'PVE.form.KVComboBox',
alias: ['widget.pveiScsiProviderSelector'],
initComponent: function() {
var me = this;
me.data = [
['comstar', 'Comstar'],
[ 'istgt', 'istgt'],
[ 'iet', 'IET']
];
me.callParent();
}
});
......@@ -81,10 +81,10 @@ Ext.define('PVE.storage.ZFSInputPanel', {
fieldLabel: gettext('Enable')
},
{
xtype: me.create ? 'textfield' : 'displayfield',
xtype: me.create ? 'pveiScsiProviderSelector' : 'displayfield',
name: 'iscsiprovider',
height: 22, // hack: set same height as text fields
value: 'Comstar',
value: 'comstar',
fieldLabel: gettext('iSCSI Provider'),
allowBlank: false
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment