proxmox-backup/www/tape/form/KeySelector.js

39 lines
660 B
JavaScript

Ext.define('PBS.form.TapeKeySelector', {
extend: 'Proxmox.form.ComboGrid',
alias: 'widget.pbsTapeKeySelector',
allowBlank: false,
displayField: 'hint',
valueField: 'fingerprint',
value: null,
multiSelect: false,
store: {
proxy: {
type: 'proxmox',
url: '/api2/json/config/tape-encryption-keys',
},
autoLoad: true,
sorter: 'hint',
},
listConfig: {
columns: [
{
text: gettext('Hint'),
dataIndex: 'hint',
sortable: true,
flex: 1,
renderer: Ext.String.htmlEncode,
},
{
text: gettext('Fingerprint'),
sortable: true,
dataIndex: 'fingerprint',
flex: 5,
},
],
},
});