2021-01-28 11:59:45 +00:00
|
|
|
Ext.define('PBS.TapeManagement.PoolSelector', {
|
|
|
|
extend: 'Proxmox.form.ComboGrid',
|
|
|
|
alias: 'widget.pbsMediaPoolSelector',
|
|
|
|
|
|
|
|
allowBlank: false,
|
|
|
|
displayField: 'name',
|
|
|
|
valueField: 'name',
|
|
|
|
autoSelect: false,
|
|
|
|
|
|
|
|
store: {
|
|
|
|
proxy: {
|
|
|
|
type: 'proxmox',
|
|
|
|
url: '/api2/json/config/media-pool',
|
|
|
|
},
|
|
|
|
autoLoad: true,
|
|
|
|
sorters: 'name',
|
|
|
|
},
|
|
|
|
|
|
|
|
listConfig: {
|
|
|
|
columns: [
|
|
|
|
{
|
|
|
|
text: gettext('Name'),
|
|
|
|
dataIndex: 'name',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: gettext('Drive'),
|
|
|
|
dataIndex: 'drive',
|
|
|
|
},
|
|
|
|
{
|
2021-03-28 11:28:36 +00:00
|
|
|
text: gettext('Allocation Policy'),
|
2021-01-28 11:59:45 +00:00
|
|
|
dataIndex: 'allocation',
|
|
|
|
},
|
|
|
|
{
|
2021-03-28 11:28:36 +00:00
|
|
|
text: gettext('Retention Policy'),
|
2021-01-28 11:59:45 +00:00
|
|
|
dataIndex: 'retention',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: gettext('Encryption Fingerprint'),
|
|
|
|
dataIndex: 'encryption',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|