58f950c546
Not even hard feeling on 'Datastore' vs. 'Data Store' but consistency is desired in such names. Talked shortly with Dominik, which also slightly favored the one without space - so just go for that one. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
35 lines
621 B
JavaScript
35 lines
621 B
JavaScript
Ext.define('PBS.form.DataStoreSelector', {
|
|
extend: 'Proxmox.form.ComboGrid',
|
|
alias: 'widget.pbsDataStoreSelector',
|
|
|
|
allowBlank: false,
|
|
autoSelect: false,
|
|
valueField: 'store',
|
|
displayField: 'store',
|
|
|
|
store: {
|
|
model: 'pbs-datastore-list',
|
|
autoLoad: true,
|
|
sorters: 'store',
|
|
},
|
|
|
|
listConfig: {
|
|
columns: [
|
|
{
|
|
header: gettext('Datastore'),
|
|
sortable: true,
|
|
dataIndex: 'store',
|
|
renderer: Ext.String.htmlEncode,
|
|
flex: 1,
|
|
},
|
|
{
|
|
header: gettext('Comment'),
|
|
sortable: true,
|
|
dataIndex: 'comment',
|
|
renderer: Ext.String.htmlEncode,
|
|
flex: 1,
|
|
},
|
|
],
|
|
},
|
|
});
|