proxmox-backup/www/form/RemoteSelector.js
Fabian Grünbichler 10052ea644 remote.cfg: rename userid to 'auth-id'
and fixup config file on upgrades accordingly

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-11-10 13:25:24 +01:00

41 lines
693 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'),
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,
},
],
},
});