proxmox-backup/www/tape/form/KeySelector.js
Dominik Csapak 5f1f7ef564 ui: tape/PoolEdit: add selector for encryption keys
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-02-04 17:36:06 +01:00

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