proxmox-backup/www/form/DataStoreSelector.js
Dominik Csapak 709584719d ui: add RemoteSelector and DataStoreSelector
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-29 11:31:54 +02:00

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,
},
],
},
});