Commit 99e9cb55 authored by Dietmar Maurer's avatar Dietmar Maurer

copy form/PoolSelector.js from manager to manager5

parent bb5a9ed8
Ext.define('PVE.form.PoolSelector', {
extend: 'PVE.form.ComboGrid',
alias: ['widget.pvePoolSelector'],
allowBlank: false,
initComponent: function() {
var me = this;
var store = new Ext.data.Store({
model: 'pve-pools'
});
Ext.apply(me, {
store: store,
autoSelect: false,
valueField: 'poolid',
displayField: 'poolid',
listConfig: {
columns: [
{
header: gettext('Pool'),
sortable: true,
dataIndex: 'poolid',
flex: 1
},
{
id: 'comment',
header: gettext('Comment'),
sortable: false,
dataIndex: 'comment',
flex: 1
}
]
}
});
me.callParent();
store.load();
}
}, function() {
Ext.define('pve-pools', {
extend: 'Ext.data.Model',
fields: [ 'poolid', 'comment' ],
proxy: {
type: 'pve',
url: "/api2/json/pools"
},
idProperty: 'poolid'
});
});
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