ui: tape/PoolEdit: add selector for encryption keys
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
2e4e698633
commit
5f1f7ef564
38
www/tape/form/KeySelector.js
Normal file
38
www/tape/form/KeySelector.js
Normal file
@ -0,0 +1,38 @@
|
||||
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,
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user