ui: TokenEdit: change default focus to tokenide field

Avoids that the user selector always pops up and tokenid is normally
more likely to change as the userid gets pre-selected to the one from
the logged in user.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-05-19 21:00:57 +02:00
parent fbfe1e39d4
commit a6ac82556f

View File

@ -13,6 +13,8 @@ Ext.define('PVE.dc.TokenEdit', {
method: 'POST',
url: '/api2/extjs/access/users/',
defaultFocus: 'field[disabled=false][hidden=false][name=tokenid]',
items: {
xtype: 'inputpanel',
onGetValues: function(values) {