proxmox-backup/www/form/RemoteSelector.js
Thomas Lamprecht 2e02a859cf fix #3058: ui: improve remote edit UX by clarifying ID vs host
also fixup missing emptyText for fingerprint (adapted from PVE's PBS
storage addition) and code-style in surrounding areas a bit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-12 09:38:59 +01:00

41 lines
696 B
JavaScript

Ext.define('PBS.form.RemoteSelector', {
extend: 'Proxmox.form.ComboGrid',
alias: 'widget.pbsRemoteSelector',
allowBlank: false,
autoSelect: false,
valueField: 'name',
displayField: 'name',
store: {
model: 'pmx-remotes',
autoLoad: true,
sorters: 'name',
},
listConfig: {
columns: [
{
header: gettext('Remote ID'),
sortable: true,
dataIndex: 'name',
renderer: Ext.String.htmlEncode,
flex: 1,
},
{
header: gettext('Host'),
sortable: true,
dataIndex: 'host',
flex: 1,
},
{
header: gettext('Auth ID'),
sortable: true,
dataIndex: 'auth-id',
renderer: Ext.String.htmlEncode,
flex: 1,
},
],
},
});