c15b058db7
to not having to query the activeTasks everywhere, change the renderer to omit the check/spinner when no activeTasks are given Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
44 lines
805 B
JavaScript
44 lines
805 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,
|
|
},
|
|
{
|
|
header: gettext('Maintenance'),
|
|
sortable: true,
|
|
dataIndex: 'maintenance',
|
|
renderer: (value) => {
|
|
return PBS.Utils.renderMaintenance(value);
|
|
},
|
|
flex: 1,
|
|
}
|
|
],
|
|
},
|
|
});
|