matchFieldWidth: false,
listConfig: {
loadingText: gettext('Scanning...'),
- width: 350
+ width: 350,
},
doRawQuery: function() {
},
me.portal = portal;
},
- initComponent : function() {
+ initComponent: function() {
var me = this;
if (!me.nodename) {
}
var store = Ext.create('Ext.data.Store', {
- fields: [ 'target', 'portal' ],
+ fields: ['target', 'portal'],
proxy: {
type: 'proxmox',
- url: '/api2/json/nodes/' + me.nodename + '/scan/iscsi'
- }
+ url: '/api2/json/nodes/' + me.nodename + '/scan/iscsi',
+ },
});
store.sort('target', 'ASC');
Ext.apply(me, {
- store: store
+ store: store,
});
me.callParent();
- }
+ },
});
Ext.define('PVE.storage.IScsiInputPanel', {
extend: 'PVE.panel.StorageBase',
+ onlineHelp: 'storage_open_iscsi',
+
onGetValues: function(values) {
var me = this;
},
setValues: function(values) {
- values.luns = (values.content === 'images') ? true : false;
- this.callParent();
+ values.luns = (values.content.indexOf('images') !== -1);
+ this.callParent([values]);
},
- initComponent : function() {
+ initComponent: function() {
var me = this;
me.column1 = [
exportField.setPortal(value);
exportField.setValue('');
}
- }
- }
+ },
+ },
},
{
readOnly: !me.isCreate,
name: 'target',
value: '',
fieldLabel: 'Target',
- allowBlank: false
- }
+ allowBlank: false,
+ },
];
me.column2 = [
xtype: 'checkbox',
name: 'luns',
checked: true,
- fieldLabel: gettext('Use LUNs directly')
- }
+ fieldLabel: gettext('Use LUNs directly'),
+ },
];
me.callParent();
- }
+ },
});